Hi Marcelo First, let me direct your attention to the style-guide <https://github.com/johnpapa/angular-styleguide>. Read that entirely for at least 2 times. Even the parts you don't understand yet.
What you are proposing to do will create a very tight coupling between your directive and your controllers. While it is easily possible to do that, it *is* a *bad *idea. It will make maintaining your app more difficult then it needs to be. Best solution for things like this: Create a service that you can inject in both your directive and into your controller. That service will then 'communicate' between the two. Regards Sander -- 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/d/optout.
