Topics in Basics

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 […]

Angular Event Binding

In the previous article, we learned about Angular Style Binding. In this tutorial, we’ll learn about the most used and important topic, i.e., Event Binding. Event Binding is used to respond to the events raised by the user. There are many types of events such as click, mouseover, keydown, keypress, and many more. What is […]