What is the difference between a directive and a component in AngularJS?
A. A component is a type of directive that has its own template and controller
B. A directive is a type of component that has its own template and controller
C. A component is a type of service that provides functionality to a controller
D. A directive is a type of filter that modifies data in the view
Answer:A
What is the difference between a directive and a component in AngularJS?
A. A component is a type of directive that has its own template and controller B. A directive is a type of component that has its own template and controller C. A component is a type of service that provides functionality to a controller D. A directive is a type of filter that modifies data in the view