What are directives?

934    Asked by KaranTrivedi in Python , Asked on Nov 16, 2019
Answered by Arun Singh

Directive is basically a function which gets executed when the Angular compiler finds it in DOM.

There are three types of directives in Angular:

Component

-Directives with a template

Structure Directive

-Change layout of the elements

Attribute Directive

-Change the appearance or behavior of a particular element.



Your Answer

Interviews

Parent Categories