AngularJS directive
From Wiki @ Karl Jones dot com
Revision as of 10:36, 2 January 2017 by Karl Jones (Talk | contribs)
In AngularJS, a directive is a class decorated with @Directive
.
There are three kinds of directives in Angular:
- Components — directives with a template.
- Structural directives — change the DOM layout by adding and removing DOM elements.
- Attribute directives — change the appearance or behavior of an element.
Built-in directives include structural directives and attribute directives.
Writing custom directives, and using the built-in directives, is th