angular dynamic html class code example
Example: angular dynamic class
<button [ngClass]="type === 'mybutton' ? namespace + '-mybutton' : ''"></button>
<button [ngClass]="type === 'mybutton' ? namespace + '-mybutton' : ''"></button>