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