AngularJS Developer Question:
Download Questions PDF

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


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

Download AngularJS Developer Interview Questions And Answers PDF

Previous QuestionNext Question
What are Controllers in AngularJS?Tell me what is $rootScope and how does it relate to $scope?