level 1
来文学
楼主
animations: [
trigger('routeAnimation', [
state('*',
style({
opacity: 1,
width: '100%',
transform: 'translateX(0)'
})
),
transition(':enter', [
style({
opacity: 0,
transform: 'translateX(-100%)'
}),
animate('0.2s ease-in')
]),
transition(':leave', [
animate('0.5s ease-out', style({
opacity: 0,
transform: 'translateY(100%)'
}))
])
])
],
错误提示:
Unhandled Promise rejection: Animation parse errors:
- Unable to parse the animation sequence for "routeAnimation" on the ReceiveComponent component due to the following errors:
-- the provided :enter is not of a supported format
-- the provided :leave is not of a supported format ; Zone: <root> ; Task: Promise.then ; Value: Error: Animation parse errors:
- Unable to parse the animation sequence for "routeAnimation" on the ReceiveComponent component due to the following errors:
-- the provided :enter is not of a supported format
求大神指点。
2017年01月14日 03点01分
1
trigger('routeAnimation', [
state('*',
style({
opacity: 1,
width: '100%',
transform: 'translateX(0)'
})
),
transition(':enter', [
style({
opacity: 0,
transform: 'translateX(-100%)'
}),
animate('0.2s ease-in')
]),
transition(':leave', [
animate('0.5s ease-out', style({
opacity: 0,
transform: 'translateY(100%)'
}))
])
])
],
错误提示:
Unhandled Promise rejection: Animation parse errors:
- Unable to parse the animation sequence for "routeAnimation" on the ReceiveComponent component due to the following errors:
-- the provided :enter is not of a supported format
-- the provided :leave is not of a supported format ; Zone: <root> ; Task: Promise.then ; Value: Error: Animation parse errors:
- Unable to parse the animation sequence for "routeAnimation" on the ReceiveComponent component due to the following errors:
-- the provided :enter is not of a supported format
求大神指点。