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