According to AngularJS Developer Guide - Directives "Isolating the Scope of a Directive", scope binding can be done in 3 types
=, @ and &
and
according to "Directive Definition Object" section in this Page, scope binding can be done in 4 types
=, @, & and <
Even in most of the online articles isolated scope binding is given of 3 types only.
Which is correct?
i think there is 3 types:
the = for a bidirectional binding (for ex Parent Directive share a property with its child)
the @ for one direction binding (for ex Parent Directive send a params to its child)
the & for function binding (for ex a child can call a function declared in the scope of his Parent Directive)