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