Question:

Explain what is directive and Mention what are the different types of Directive?

Answer:

During compilation process when specific HTML constructs are encountered a behaviour or function is triggered, this function is referred as directive.  It is executed when the compiler encounters it in the DOM.

Different types of directives are

  • Element directives
  • Attribute directives
  • CSS class directives
  • Comment directives

Keywords:

© 2017 QuizBucket.org