It lets you write custom themes more easily, add classes based on the state of the component, and also write different variations of a component that rely on styling. Adding a dynamic class name is as simple as adding the prop :class=”classname” to your component .
Read moreWhat is the difference between class and component in Angular?
A component is one of the basic building blocks of an Angular app. An app can have more than one component . In a normal app, a component contains an HTML view page class file, a class file that controls the behaviour of the HTML page and the CSS/scss file to style your HTML view.
Read moreWhat are the key components of Angular?
Angular 6 – Components
Read moreWhat are components in Angular with example?
A Component is nothing but a simple typescript class, where you can create your own methods and properties as per your requirement which is used to bind with an UI (html or cshtml page) of our application .12 Eki 2017
Read more