J. Doe
0
Q:

ngclass ternary

<div [ngClass]="varA === varB ? 'css-class-1' : 'css-class-2'">
0

New to Communities?

Join the community