We'll learn about Custom Directives.
1) How to implement in Angular
2) When we should create custom Directive
3) Its benefits
Creating a custom directive is just like creating an Angular component. To create a custom directive we have to replace @Component decorator with @Directive decorator.
CLI Command
ng generate directive example
Refer below link for overview and types of directives
• Angular Directives Tutorial | Types of Dir...
コメント