In this video we are going to learn how about CSS class binding in #angular and How many different ways to add or remove class from html element.
We can do in three different way
1. we can add in normal way using class attribute of element
2. we can use angular property binding [class]="variableName" to add class in angular
3. we can add or remove class dynamically in angular using [class.cssClassName]="booleanVariable", if variable value is true then css class will be applied to element otherwise not,
4. we can also add or remove group of class in angular using [ngClass]="objectname" object key will be css class name and the value of key will be boolean value either true or false,
If true then that css class will be applied to the element
Watch this video till the very end and get to know more about class binding
-----------------------------------------
Angular 8 2020 | Introduction to Angular
• Angular 8 2020 | Introduction to Ang...
Angular 8 2020 | Angular Project Setup #2
• Angular 8 2020 | Angular Project Setu...
Angular 8 2020 | Workspace vs File Structure of Angular #3
• Angular 8 2020 | Workspace vs File St...
Angular 8 2020 | Single Page Application vs Multi page Application #4
• Angular 8 2020 | Single Page Applicat...
Angular 8 2020 | Complete architecture Overview #5
• Angular 8 2020 | Complete architectur...
Angular 8 2020 | What is Component in Angular Application #6
• Angular 8 2020 | What is Component in...
Angular 8 2020 | Interpolation #7
• Angular 8 2020 | Interpolation #7
Angular 8 2020 | Property binding #8
• Angular 8 2020 | Property binding #8