What is Directive?
- Directive is the fundamental in Angular JS.
- AngularJS applications are build upon on directives.
- Components are higher order directives with templates.
- Serves as the building blocks in angular application.
Types of Directives in AngularJS
- Components - Directives with templates
- Structural Directives - Directives creates and destroys the DOM elements.
- Attribute Directives - Directives that manipulates DOM by changing behaviour and appearance
.
No comments:
Post a Comment