Question: angular 2 what is component?
Answer: A component is a main building block of an Angular 2 application, and an application may have any number of components. We can consider a component a particular view of the application with its own logic and data. ... In Angular 2, components perform all the tasks that were performed by controllers, scopes and directives.