angular custom instructions restrict can set how kind, namely, what does this mean? Scope of the @ , = , &
What's the difference? How to achieve the level of interaction with the parent role?
restrict property, this command is determined as a label ( E ), the properties ( A ), the attribute value ( C ), or Note ( M ).
Scope
To false. 1 (default): to use the parent scope . More "dangerous."
To true 2 : inherited his father's scope
{3} can be interpreted as an internal command and not a new scope , and which share the same instruction code outside a scope .
@ : One-way binding, external scope can affect the internal scope , but the reverse is not true
= : Two-way binding, external scope and internal scope of the model can be changed each other
& : The internal scope return value of a function of the external and scope of any attribute bind