How to use @HostBinding with @Input properties in Angular 2? May 29, 2023 by Tarik You need to combine the decorators like this: @HostBinding('class.active') @Input() active: boolean = false;