I wonder when should use ngClass instead class I noticed that this style in css file
.someClass {
color: red;
}
<div [ngClass]="['someClass']">Some text</div>
<div class="someClass">Some text2</div>
working properly for two div with diff aproach. I write that when we use condition is good practice using [ngClass]. Why else? What are the benefits using [ngClass] instead class ?