Angular JS Directives Cheatsheet

The start of a directives cheatsheet

= (2 way data binding, creates a watch)
@ (just pass values, no watch, just value, nb: this is not 2 way binding, so you should not pass a $scope.variable, just a literal value, or the direct variable {{variable}})
& (use this for methods/expressions)

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.