Hi Luca..., How is this different from the example I gave earlier on? You are using the scope directly in your directives controller, this is coupling the directive and the controller in a very tight way. The idea of my sample was on how to expose an API from within a directive. Most of the times this is a bad idea, but sometimes you just need something like this.
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.
