Jan 15, 2020 in Angular
Q: On which types of the component can we create a custom directive?

1 Answer

0 votes
Jan 15, 2020

Angular provides support to create custom directives for the following:

Element directives − Directive activates when a matching element is encountered.

Attribute − Directive activates when a matching attribute is encountered.

CSS − Directive activates when a matching CSS style is encountered.

Comment − Directive activates when a matching comment is encountered

Related questions

0 votes
Feb 15, 2020 in Angular
0 votes
Feb 5 in Angular
...