scope 

Send to Kindle
home » snippets » angularjs » scope



Isolate scope values

Ref: http://docs.angularjs.org/guide/directive

value Description
@ or @attr Bind a local scope property to the value of DOM attribute.  The result is always a string since DOM attributes are strings. If no attr name is specified then the attribute name is assumed to be the same as the local name.
= or =attr Set up bi-directional binding between a local scope property and the parent scope property of name defined via the value of the attr attribute. If no attr name is specified then the attribute name is assumed to be the same as the local name.
& or &attr Provides a way to execute an expression in the context of the parent scope. If no attr name is specified then the attribute name is assumed to be the same as the local name.