angular 2.0.0-rc4和Angular 2.0.0有什么区别 [英] What's the difference between angular 2.0.0-rc4 vs Angular 2.0.0
问题描述
我正在处理Angular 2.0.0 rc-4
文档,但前一天是Angular Release 2.0.0
.如何在2.0.0.
I am working on the Angular 2.0.0 rc-4
documentation but previous day's Angular Release 2.0.0
.How I configure my app in 2.0.0.
主要区别是什么? 任何帮助将不胜感激,谢谢
What's the main difference in it ? Any help will be appreciated, Thanks
推荐答案
如上所述,您必须通过变更日志 http://github.com/angular/angular/blob/master/CHANGELOG.md
As suggested above you have to go thru the changelog http://github.com/angular/angular/blob/master/CHANGELOG.md
在此更改日志中,您需要主要集中在重大更改上.
In this change log you need to mainly focus on breaking changes.
总结一下,如果您想从rc4迁移到最终版本:
Just to summarize, if you would like to migrated from rc4 to final:
- 您需要在应用程序级别创建一个模块(NgModule)
- 该模块将引导您app.component
- 在模块的声明部分,您必须添加在应用程序中创建的所有组件,指令,管道.
- 在提供者部分,您必须添加所有服务
- 此外,您还必须从每个组件元数据中删除指令和管道列表,因为它们现在已被删除.
我想现在您可以使用最终版本了. 稍后,我建议您可以重构代码以为每个功能提供模块.
I guess now you are good to go with final version. Later on, I would suggest that you can refactor your code to have modules for each features.
这篇关于angular 2.0.0-rc4和Angular 2.0.0有什么区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!