简体   繁体   English

角度4和6之间的差异

[英]Difference between angular 4 and 6

Are there any features in Angular 4 that are now obsolete in Angular 6? Angular 4中有哪些功能现在已在Angular 6中过时了? Or in other words can I use angular 6 library in my application and use all of Angular 4 functionalities in it. 或者换句话说,我可以在我的应用程序中使用angular 6库,并在其中使用所有Angular 4功能。 I'm new to Angular framework and just wondering should I start with Angular 6 directly or should I first read Angular 4. 我是Angular框架的新手,只是想知道我应该直接从Angular 6开始还是应该首先阅读Angular 4。

Depending on the functionalities that your app has. 取决于您的应用程序具有的功能。 The differences from Angular 2 to Angular 6 are very small, the main difference was made between Angular 1 or now known as AngularJS and the new Angular (2-6). 从Angular 2到Angular 6的差异非常小,主要区别是在Angular 1(现在称为AngularJS)和新的Angular(2-6)之间。 The differences between all Angular versions are insignificant to the general developer, as they are very small, or there are new ways of doing things, but 99% of the old ones also work. 对于所有开发人员而言,所有Angular版本之间的差异都不大,因为它们很小,或者有新的处理方式,但是99%的旧版本也可以使用。

Actually there differences of deprecated classes/methods..etc and new ones replacing them. 实际上,已经过时的类/方法..etc和新的类/方法之间存在差异。 You do NOT need to start with Angular 4 since 6 is not that different except the upgrade like the HTTPClient API for example. 您不需要从Angular 4开始,因为6并没有什么不同,除了像HTTPClient API这样的升级。 If you want to know the difference between version 4.0 (first 4) and version 6.1 (latest 6 at this time) then go to the official upgrade site 如果您想了解版本4.0(前4个)和版本6.1(当前为最新的6个)之间的区别,请访问官方升级网站

https://update.angular.io https://update.angular.io

and select the versions and Advanced and see the changes needed on any app running on 4. Most notable change is rxjs 6. Also, the old APIs still work by the way. 并选择版本和Advanced然后查看在4上运行的任何应用程序上所需的更改。最值得注意的更改是rxjs6。此外,旧的API仍然可以正常工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM