首页 > 其他 > 详细

[转] can not find module @angular/animations/browser

时间:2018-10-05 19:19:03      阅读:187      评论:0      收藏:0      [点我收藏+]

本文转自:https://blog.csdn.net/yaerfeng/article/details/68956298

angularjs4升级了,原来的animations现在被单独出来一个包。

package.json中添加

 

"dependencies": {
        "@angular/animations": "^4.0.1",
}

 

 

npm install

在相应的模块或者app.module.ts中添加

 

import { BrowserAnimationsModule } from ‘@angular/platform-browser/animations‘;
imports: [
        BrowserAnimationsModule
    ],

--------------------- 本文来自 yaerfeng 的CSDN 博客 ,全文地址请点击:https://blog.csdn.net/yaerfeng/article/details/68956298?utm_source=copy 

 

[转] can not find module @angular/animations/browser

原文:https://www.cnblogs.com/freeliver54/p/9745531.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!