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 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.
