I followed the instructions of this post to add parameters for my Angular animation but it didn't work. I am using Angular 2+ more specifically Angular 5.
This is my animation:
import { trigger, transition, style, state, animate} from '@angular/core';
export const AnimacaoPassosCadastroImovel = trigger("animarPasso" ,[
state("inicial", style({
width: '{{ passoInicial }}',
border: "3px solid black"
}), {params: { passoInicial: 0 } ),
state("final", style({
width: '{{ passoFinal }}',
border: "3px solid blue"
}), {params: { passoFinal: 40 } ),
transition("inicial => final", animate("800ms"))
]);
My console: