December 2017
Beginner
372 pages
10h 32m
English
Similar to the directives that we created in our application, Angular also provides some built-in directives. Here, we will look at two of those built-in directives: *ngIf and *ngFor.
These directives are called structural directives because they modify the structure of the existing template by adding, removing, and modifying the existing elements. These directives are available in BrowserModule and, hence, can be referenced and used in any module that imports BrowserModule, as we did in our AppModule code.
The asterisk sign prefixing the directive is a terminology used by Angular to identify structural directives.
Read now
Unlock full access