AngularJS Developer Question:
Download Questions PDF

Explain on which types of component can we create a custom directive?

Answer:

AngularJS provides support to create custom directives for following type of elements.

☛ 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.

Download AngularJS Developer Interview Questions And Answers PDF

Previous QuestionNext Question
Explain me what is factory method?Tell me how does interpolation, e.g. “{{ someModel }}”, actually work?