Hi rani,
Angular 2 has the following components.
Modules − This is used to break up the application into logical pieces of code. Each piece of code or module is designed to perform a single task.
Component − This can be used to bring the modules together.
Templates − This is used to define the views of an Angular JS application.
Metadata − This can be used to add more data to an Angular JS class.
Service − This is used to create components which can be shared across the entire application.
Please refer below links for more details:
https://www.tutorialspoint.com/angular2/angular2_components.htm
https://angular.io/guide/architecture-components