Angular 2 Directives

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!

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



Got any Angular 2 Question?