I read that its better to use @HostBinding instead of :host. So i think about change my component.ts
@Component({
host: {
'class': 'cover',
'[class.uploading]': 'uploadProgress > 0',
}
})
This works fine, but when i change it to:
export class Cover {
@HostBinding('class') classes = 'mark6-cover';
@HostBinding('[class.uploading]') uploadProgress > 0;
@Input() uploadProgress = null;
}
i get errors and nothing works. What i did wrong here? And how can i make the variable uploadProgress to a observable?