HostBinding and HostListener in Angular On July 25, 2020October 19, 2021 by Amitav Mishra @HostBinding decorator used to access and set any property of actual DOM element from directive and
Custom Directive in Angular On July 22, 2020October 23, 2021 by Amitav Mishra For creating a custom directive, we can use the angular CLI command i.e. ng g d directive-name or
NgStyle vs Style Binding in Angular On July 21, 2020October 2, 2021 by Amitav Mishra Using style binding we can add single CSS style dynamically to HTML element whereas with ngStyle we
NgClass vs Class Binding in Angular On July 21, 2020October 2, 2021 by Amitav Mishra To add or remove a CSS class dynamically from an element we can make use of class binding whereas
The *ngFor Directive in Angular On July 19, 2020October 23, 2021 by Amitav Mishra The *ngFor is a structural directive in Angular. The asterisk(*) present in *ngFor represents that
Types of Directives in Angular On July 19, 2020October 23, 2021 by Amitav Mishra Directives in Angular are used to change the appearance, behavior, or layout of the DOM. The
Data Binding in Angular On July 15, 2020October 23, 2021 by Amitav Mishra Data binding is a concept of communication between the component and view. We can bind the data
Difference between constructor and ngOnI … On July 15, 2020October 23, 2021 by Amitav Mishra The constructor is a default Typescript class method whereas ngOnInit is a lifecycle hook in