Understand Angular Directives in Depth
Course on egghead by John Lindquist
- 29 min
- LengthVideo runtime
- Subscription
- Price modelegghead plan
- 11
- Lessons
- 4.4
- Rating out of 528 ratings on egghead
- Dec 2016
- Published19 Dec 2016
About this course
Angular Directives allow you to add custom behavior to elements and components. Rather than creating a hierarchy of components to try to "extend" behavior, Angular Directives enable you to compose behaviors on to your components. This includes adding event listeners that hook into services, manipulating templates, and adding more configuration to basic elements. This course helps you understand the concepts around building our Angular directives and provides examples from basic directives that inspect elements to advanced structural directives that completely re-write templates. If Angular is new and the syntax foreign, you will want to check out Get Started with Angular and Building Angular Components.
What it covers
- 1Write an Angular Directive
- 2Add Inputs to Angular Directives
- 3Handle Events with Angular Directives
- 4Build a Directive that Tracks User Events in a Service in Angular
- 5Combine HostBinding with Services in Angular Directives
- 6Use Template Elements in Angular
- 7Create Elements from Template Elements with ngTemplateOutlet in Angular
- 8Write a Structural Directive in Angular
- 9Implement Structural Directive Data Binding with Context in Angular
- 10Assign a Structual Directive a Dynamic Context in Angular
- 11Create a Template Storage Service in Angular
Similar Angular courses
Same topic, nearest in length, up to three from any one provider.
Data read from the egghead catalogue on 28 Nov 2026. How the data is collected.