Skip to main content

Posts

Showing posts with the label What Are Components in Angular 6

What Are Components in Angular?

The Concepts of Angular  Components   - Components are the most basic building block of a UI in Angular applications and it controls views (HTML/CSS). They also communicate with other components and services to bring functionality to your applications. Technically components are basically TypeScript classes that interact with the HTML files of the components, which get displayed on the browsers. The component is the core functionality of Angular applications but you need to know to pass the data into the components to configure them. Angular applications must have a root component that contains all other components. Components are created using @Component decorator that is part of @angular/core module . You can create your own project using Angular CLI, this command allows you to quickly create an Angular application like - generate components, services, pipes, directive, classes, and modules, and so on as per your requirements. Create your own c...