I also ran into this problem if someone knows why please help - My solution:
I had a carousel that automatically went through the slides:
Component.HTML:
div
<div [@slideInOutAnimation]='mainState'></div>
, , .
Component.TS:
this.mainState = 'enter';
var delayAnim = setTimeout(() => {
this.mainState = 'new';
},3000)
,
Animation.TS:
trigger('slideInOutAnimation', [
state('new', style({
...
})),
transition('* => enter', [
...style...animate...
])
, 'enter', , "", . home/component/1 = > /2 etc