Angular multiple classes with ngClass

Last Updated: January 8, 2021

You can apply multiple classes to HTML element with ngClass if certain conditions are true

Here is the example ,

<div   [ngClass]="{'is-hidden': isHidden==false, 'bg': isMouseOver==true}">
      <div class="column is-12">
        <span>Project Payment </span>
      </div>
</div>