Topics in Angular

Angular ngSwitch Directive

In the previous article, we’ve learned about the ngIf directive. In this article, we are going to learn about the ngSwitch directive and its working. What is the Angular ngSwitch Directive? The ngSwitch is basically a built-in template directive used to display HTML elements into the View after the evaluation switch statement. It’s the same […]

Angular ngIf Directive

In the previous article, we’ve learned about the ngFor directive. In this article, we’re going to learn about the ngIf directive, and it’s working. What is Angular ngIf Directive? The ngIf is basically a built-in template directive used to display HTML elements conditionally into the View. It’s the same as if statement in any programming […]

Angular ngFor Directive

In the previous article, we’ve learned two-way data using the ngModel directive. In this article, we’re going to learn about the ngFor directive and its working. What is Angular ngFor Directive? ngFor is basically a built-in template directive used to iterate something like an object or array and display it into the View. Of course, […]

Angular Two-way Data Binding

As you’ve learned the property binding and event binding, now we’re good to go with two-way data binding. What Is Two-Way Data Binding in Angular? The main disadvantage of one-way data binding is that it doesn’t get reflected in the TypeScript code when we make any change in the view. As a solution to this […]

Angular Template Reference Variables

In the previous article, we learned about Angular style binding. In this article, we’ll learn about Template Reference Variables. It is the reference to any DOM elements. What is Angular Template Variable? Sometimes we want to flow some data from the view to the class to operate, which is possible with Angular template variables. For […]