将Angular 4升级到Angular 8 [英] Upgrade Angular 4 to Angular 8

查看:87
本文介绍了将Angular 4升级到Angular 8的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将Angular 4上的应用程序升级到Angular 8?我是否需要一个新的angular 8应用程序并复制粘贴每个组件并进行相应的更改,或者是否有其他合适的方法?

解决方案

我已经经历了几次,每次我最终以新版本创建全新的应用程序,然后复制粘贴每个组件一个./p>

1)开始使用此方法后,升级不需要花费很长时间.我只花了几个小时就升级了.

2)这样,您将意识到不需要很多垃圾和不必要的代码/库,并且有机会从现有应用程序中删除它,并且您的应用程序将更加干净.

3)您可以创建全新的cli应用程序或使用标准的免费模板.我为Angular8和Bootstrap 4使用SB Admin模板,可以轻松设置外观精美的新应用.您可以在一分钟内下载并设置应用程序,然后开始添加组件查看这个-Angular 8 Bootstrap 4模板

3)我不了解通过角度升级工具自动升级的应用程序,我的应用程序坏了.我不知道它发生了什么变化.然后,我花了很长时间才能一一解决问题,但仍然无法完全解决.因此最终使用复制/粘贴方法.

希望这会有所帮助.

How can I upgrade my application on Angular 4 to Angular 8? Should I need to make a new angular 8 application and copy paste every components and change accordingly or is there any other suitable method?

解决方案

I have been through this few times and every time I end up creating brand new app with new version, then copy paste each component one-by-one.

1) Once you start with this approach, It doesn’t take that long to upgrade. It took me only couple of hours to upgrade.

2) By doing this, you will realize that there is lot of junk and unnecessary code/libraries that you don’t need and you will have chance to take it out from your existing app and your app will be more cleaner.

3) You can create brand new cli app or use standard free template. I use SB Admin template for angular8 and bootstrap 4 and can easily setup new app with beautiful looks. You can download and setup app in a minute and start adding your components Check this out - Angular 8 Bootstrap 4 template

3) I don’t understand automatically upgraded app by angular upgrade tool and my app was broken. I don’t know what it changed. Then it took me so long to fix issues one by one and still couldn’t resolve it completely. So ended up using copy/paste method.

Hope this helps.

这篇关于将Angular 4升级到Angular 8的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆