// Non objects @HostBinding('class.active') @Input() active: boolean = false; // With objects @Input() something: obj; @HostBinding('class.active') get isActive(): boolean { return this.obj.isActive; }