AngularJS directives are used to extend HTML. In simple words, AngularJS are DOM Manipulator that tells AngularJS’s HTML compiler ($compile
) to provide a specific behavior to DOM element (such as

AngularJS directives are used to extend HTML. In simple words, AngularJS are DOM Manipulator that tells AngularJS’s HTML compiler ($compile
) to provide a specific behavior to DOM element (such as
Angular 4 updated the *ngIf directive with new feature that allows us to use if/else style syntax as shown below Using If <div *ngIf=”isValid”> If
Single-Page Applications (SPAs) are web applications that load a single HTML page and dynamically update that page as the user interacts with the app. SPAs use AJAX and HTML5 to create fluid and responsive Web apps,