【发布时间】:2016-06-29 20:15:37
【问题描述】:
由于 angular 2 动画还没有完全更新,有没有办法用 css 为页面设置动画?
我尝试在组件中添加主机,但没有帮助。
例如这是我的组件:
@Component({
selector: 'pos-projects-list',
pipes: [AsyncPipe, SearchPipe],
directives: [RippleDirective],
templateUrl: 'app/dashboard/pages/projects/templates/list.html',
host: {'class' : 'ng-animate'}
})
所以我在这里做的是向 pos-projects-list 添加类,您可以在屏幕截图中看到。
【问题讨论】:
-
请提供更多详细信息。您尝试制作动画的
component的代码是什么? -
我正在尝试为网站上动态的任何内容制作动画,例如 pos-projects-list,请查看屏幕截图