Attribute directives

An attribute directive will be added like an attribute to existing HTML elements, and this can alter or extend the behavior of HTML elements. For example, an ngModel directive, if added to an input element, will extend it by updating its value property and also by responding to change events:

<input [(ngModel)]="author.name">

We can also write our own directives apart from using existing ones, such as ngSwitch, ngStyles, and ngClass.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.129.247.196