July 2017
Intermediate to advanced
454 pages
10h 1m
English
So far in previous sections, we have learned about and implemented built-in directives provided by Angular.
By creating custom user-defined directives, Angular allows us to define and extend the behavior and functionality of the elements in the page.
To create custom directives, we have to use the @Directive decorator and implement the logic in the class definition.
We can create custom Component, Structural, and Attribute Directives.
Any user-defined HTML tag is a component attribute (for example, <my-app>). We have been creating custom components all along, throughout each chapter of the book.
Read now
Unlock full access