Is there any way to apply a class to every routed component in Angular. One way is to use host property for each component like
@Component({
moduleId: module.id,
selector: 'one',
host :{class :'my-class'}
templateUrl: 'one.html',
})
but I don't want to write this for every component.