That's the same conclusion I think I've reached too so it's good to get
confirmation on it. Thanks!


On Wed, Feb 19, 2014 at 3:04 PM, Jim Lavin <[email protected]> wrote:

> If you think about the lines we've tried to draw for each of the component
> types; directives to manipulate the DOM, controllers to handle user
> interaction and services to perform business logic and interacting with
> back end services, you can see that trying to shove business logic into a
> directive goes against best practices.
>
> What I would do is try using a ng-repeat that repeats a partial tied to a
> controller. To assign the blog post to the controller you could use a
> ng-init directive in the partial. This way you are reusing the same
> functionality over and over but sticking to what is considered best
> practice.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "AngularJS" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/angular/vp1ZLb1V4ZA/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/angular.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to