angularjs4升级了,原来的animations现在被单独出来一个包。
package.json中添加
"dependencies": {
"@angular/animations": "^4.0.1",
}
npm install
在相应的模块或者app.module.ts中添加
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
imports: [
BrowserAnimationsModule
],
本文介绍AngularJS 4中动画功能的更新方式,包括如何安装新的动画包,以及在应用模块中导入BrowserAnimationsModule来启用动画支持。
1050

被折叠的 条评论
为什么被折叠?



