List the differences between angular 2 components vs. Directives.



List the differences between angular 2 components vs. Directives...

Answer / Dheeraj Pal Singh

*Components*: They have a template and style along with a class. They are independent entities that encapsulate behavior, state, and structure.n*Directives*: They extend HTML's capabilities by adding new attributes, elements, and even changing the behavior of existing ones. They don't have templates or styles.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AngularJS Interview Questions

What is @outputs in angular 2?

1 Answers  


Explain what is the difference between angularjs and backbone.js?

1 Answers  


What is property binding in angular?

1 Answers  


How to create a service using factory in angularjs?

1 Answers  


What is AngularUI router and how it is different from ngRoute?

1 Answers  


What is runguardsandresolvers?

1 Answers  


How to handle and retry the failed request due to poor network connection in angular 4?

1 Answers  


What is the difference between Kris Kowal's Q and $q?

1 Answers  


Is react easier than javascript?

1 Answers  


How are you managing cookie in AngularJS

1 Answers   Virtusa,


Explain the types of linking function?

1 Answers  


Mention some of the most commonly used directives in angularjs application?

1 Answers  


Categories