So this is more design/architectural question; How should directives talk to services? 1) Directly or 2) Via controllers(=controllers do the wiring)
As an example; I've got directive that displays checkboxes. When clicking checkbox service state will be changed. So I can directly inject service to this checkbox directive and call change state method in service. -- 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.
