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