i hinzugefügt, um eine Animation an den Host überZugabe
@Component({
....,
animations: [
trigger('slideIn', [
...
])
],
host: {
'[@animation]': 'condition'
}
}
, die gut funktioniert, auf Kompilation wurde mir gesagt das ist veraltet, und ich sollte @HostBinding verwenden ...
@HostBinding('[@animation]') get slideIn() {
return condition;
}
welche wirft mir einen Fehler
Can't bind to '[@animation' since it isn't a known property of 'my-component-selector'.
aber ich nicht eine Animation in mein Modul hinzufügen kann .. was kann ich tun?