i ajouté une animation à l'hôte viaajoutant une animation angulaire à un élément hôte
@Component({
....,
animations: [
trigger('slideIn', [
...
])
],
host: {
'[@animation]': 'condition'
}
}
qui a bien fonctionné, sur la compilation, on m'a dit cela est dépréciée et que je devrais utiliser @HostBinding ...
@HostBinding('[@animation]') get slideIn() {
return condition;
}
qui me renvoie une erreur
Can't bind to '[@animation' since it isn't a known property of 'my-component-selector'.
mais je ne peux pas ajouter une animation dans mon module .. que puis-je faire?