How can one ensure best practices are followed when creating angularJS directives?
Some key points to consider:
- The optimal size of the link function
- Best practices for what to do and what not to do in the link function
- The proper usage of scope.$apply