October 2018
Beginner to intermediate
478 pages
10h 8m
English
Like ngFor, ngIf is another built-in structural directive that affects the HTML DOM layout.
When applied to an element in its basic form, as seen here, the element is mounted to the DOM when the assigned expression evaluates to true; otherwise, it is removed from the DOM. Therefore, the busy indicator is displayed only when the component state, isBusy, is true.
Read now
Unlock full access