Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

angualr add class to component

@Component({
   selector: 'app-your-component',
   templateUrl: './your-component.component.html',,
   host: {'class': 'your-class'}
})
export class YourComponent implements OnInit {
...
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #angualr #add #class #component
ADD COMMENT
Topic
Name
7+9 =