Answers for "how to apply two ngclass in angular"

CSS
2

multiple ngclass

<section [ngClass]="{'class1':condition1, 'class2': condition2, 'class3':condition3}" >
Posted by: Guest on February-03-2021
0

Adding multiple class using ng-class

<div ng-class="{class1 : expression1, class2 : expression2}">
    Hello World!
</div>
Posted by: Guest on August-31-2021

Browse Popular Code Answers by Language