angular host binding class on input

Solutions on MaxInterview for angular host binding class on input by the best coders in the world

showing results for - "angular host binding class on input"
Ilan
02 Sep 2018
1// Non objects
2@HostBinding('class.active') @Input() active: boolean = false;
3
4// With objects
5@Input() something: obj;
6@HostBinding('class.active')
7get isActive(): boolean {
8  return this.obj.isActive;
9}