Angular directives are reusable components that implement the Shadow DOM specification by injecting new content into the DOM based on an element, creating their own CSS/JavaScript scope, and introducing behavior through a link function.
Original Description:
A slide-presentation of the basics of directives in Angular 1.
Angular directives are reusable components that implement the Shadow DOM specification by injecting new content into the DOM based on an element, creating their own CSS/JavaScript scope, and introducing behavior through a link function.
Angular directives are reusable components that implement the Shadow DOM specification by injecting new content into the DOM based on an element, creating their own CSS/JavaScript scope, and introducing behavior through a link function.
components (widgets) that implement the Shadow DOM specification:
Inject new content into DOM based on
element (see the transclude: true and the replace: false attributes) Create own CSS/JavaScript scope ($scope in this case) Introduce behaviour (the link function)