【发布时间】:2018-10-03 04:39:55
【问题描述】:
https://angular.io/guide/animations 在状态样式的 Angular 4 动画中为什么不支持前缀?
在这个小插曲中
https://plnkr.co/edit/ALfIp5nfno2uxBgXEBST
当我尝试添加 css 样式时
animation-delay: 2s;
状态样式
state('visible', style({ left: '0', transition: '650ms ease-in-out', })),
它给了我一个错误 (TypeScript ':' expected. (TS1005))
所以我想添加一些 css 规则来支持其他浏览器,比如 firefox(-moz 前缀),但它不接受任何前缀)
任何变通方法或解决方案?
【问题讨论】:
-
你得到什么错误?
-
TypeScript ':' 预期。 (TS1005)
标签: angular typescript angular2-template angular2-forms