Directives

Download angular2 eBook

Syntax

  • <input [value]="value"> - Binds attribute value class member name.

  • <div [attr.data-note]="note"> - Binds attribute data-note to variable note.

  • <p green></p> - Custom directive

Remarks

The main source of information about Angular 2 directives is the official documentation https://angular.io/docs/ts/latest/guide/attribute-directives.html

Related Examples

Stats

418 Contributors: 9
Saturday, July 22, 2017
Licensed under: CC-BY-SA

Not affiliated with Stack Overflow
Rip Tutorial: info@zzzprojects.com

Download eBook