Directive in angular | how to create custom directive | angular 13 tutorial #12

preview_player
Показать описание
#angular #angular13 #nihiratechiees

This video explains directives in angular

Directives are classes that add additional behavior to elements in your Angular applications

Types of directive
=================

1, Components
2, Attribute directives
3, Structural directives

NgClass—adds and removes a set of CSS classes.
NgStyle—adds and removes a set of HTML styles.
NgModel—adds two-way data binding to an HTML form element.

NgIf—conditionally creates or disposes of sub views from the template.
NgFor—repeat a node for each item in a list.
NgSwitch—a set of directives that switch among alternative views.

Create directive using below command

ng g d directive-name


Important Links
================

Рекомендации по теме
Комментарии
Автор

can you please explain about EF and NativeElement please??

rajasekhar