When writing directives, I could easily use the link function and never have a issue. I have read that the compile function is beneficial for large amounts of data in the directive. I have also read that I should use the link function for when I need to only modify scope members, and the compile function when I modify the DOM. And then there leaves the controller function(of course, not using a external controller outside of the directive) in the directive. Again, I find that I can use the link function in every situation and not have a issue....
But, I would like to learn and use the correct Angular.js convention when writing directives and know if which to use for what is situation. Can anyone please explain? Examples, would help a lot to if possible, please. Thanks, -Darin -- 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.
