Question - ) Explain directives and their types
Answer -
During compilation process, when specific HTML function is triggered, it is referred to as directive. It is executed when the compiler encounters it in the DOM.
Different types of directives are:
1) Element directives
2) Attribute directives
3) CSS class directives
4) Comment directives.