In Angular 2, the components are the main way to build or specify HTML elements and business logic on the page. In AngularJs 1, we are handling using scope, directives and controllers but all those concepts are using in a single combined that is called components. The component is the core functionality of Angular 2 app but we need to know to pass the data in to the components to configure them. Stayed Informed - Angular 2 Tutorials For Quick Start To build an Angular 2 application you define a set of components, for every HTML elements, views, and route. Angular 2 applications must have a root component that contains all other components. That means all Angular 2 applications have a component tree. Application è Component è Component1 and Component2 Example of Components import { Component } from '@angular/core' ; import { CommonModule } from '@angular/common' ; @ Component({ selector : 'home' , templat...
Angular, React, JavaScript, Java, PHP, SQL, C#, Vue, NodeJs, TypeScript and Interview Questions Answers