Sharing Top Content from the Angular-sphere.

Grasping AngularJS 1.5 directive bindings by learning from Angular 2

  • Although Angular 2 only offers 2 types of attribute bindings it still offers two-way binding for its ngModel directive and actually combines both the @ and < in its input attribute binding support.
  • Whereas using the @ binding, we can bind a string value of a DOM attribute that can optionally be made dynamic by using {{ ..
  • And when using no brackets the string value of the DOM attribute will be used with optional dynamic values using using {{ ..

Read the full article, click here.


@jdriven_nl: “Grasping AngularJS 1.5 directive bindings by learning from Angular 2 #AngularJS #AngularJS15 #components”


In AngularJS 1.5 we can use attribute bindings to easily use input, output and 2-way attributes in a directive instead of manually handling it through code.


Grasping AngularJS 1.5 directive bindings by learning from Angular 2

Comments are closed, but trackbacks and pingbacks are open.