What is Angular 2 and also explain its components?

Angular 2 is the upgraded and evolved version of AngularJS, a JavaScript framework that was developed by Google. Angular 2 is used for building a single-page web or mobile applications.

Components are essential elements of Angular 2 apps, and an application can have a number of components. In Angular 2, components perform all the tasks that were done by scopes, controllers and directives, such as creating or adding Data, logic and custom elements.

In Angular 2 an component consists of the following:
  • Template
  • Class
  • Metadata

Suggest An Answer

No suggestions avaliable!

Latest post from Angular 2 Interview Questions

Ask Question