change css in ts angular 8 code example Example: add css dynamically in angular 6 ngOnInit(){ this.appendCss(this.customizeFormData); }