TutorialLesson 5Free preview
AngularJS Directives
This lesson is part of AngularJS · All levels
Summary
Directives are special HTML attributes that instruct AngularJS to modify elements. In addition to the built-in directives like ng-repeat and ng-show, you can create your own custom directives. This is the concept that later became the hallmark of Angular framework to this day.
Key points
- Inbuilt directives: ng-repeat, ng-show, ng-if, ng-click
- Custom directives are made with module.directive
- List of attributes A, E, C, M defines the form of directory use
- Directives can be used as attributes, elements, classes, or comments.
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.