3

我有一个非常大的项目,其中包含很多组件。实际上,它是我正在参与的一个开源项目。它是在 Angular 4 上构建的。目前它在 Angular 4 上运行。我正在尝试通过关注此站点https://update.angular.io/并手动更新它根据 Angular 6 搜索每个依赖项的使用并为其重写代码非常忙碌。我解决了很多错误,这导致了另一个错误。所以我的问题是,是否有必要将我的应用程序更新到最新的 Angular 6 ? 如果是,那么他们不是一些简单的方法来做到这一点。此外,我在https://update.angular.io/We do not recommend moving across multiple major versions.的警告下阅读了此内容。需要更新我的应用程序。

4

1 回答 1

0

I think you should migrate since 4 version is deprecated for reasons below:

Reasons to migrate to Angular 7

  • Lack of documentation and support on eventual bugs on the deprecated versions
  • The ability to use the latest features https://blog.angular.io/tagged/release-notes
  • If we have the latest version it’ll be easier to upgrade from 7 to the latest versions just by running a command
  • Performance Optimizations
  • Bug fixes
  • Bugs in deprecated version won’t be fixed included security issues

What is the warning of moving across major versions about

From the updating guide https://angular.io/guide/updating it implies that the tool “Angular Update Guide.” may take some manual changes and for major versions they recommend take into the account the needed changes below but you may need to create a new project from scratch and start moving your components to this new one applying the AUG recommendations.

Looking at the Deprecation Policies it seems like Long-term support for v4.x.x is over:

https://angular.io/guide/releases#support-policy-and-schedule

enter image description here

于 2018-12-26T21:58:37.103 回答