如何将应用程序从角度1升级到角度4 [英] How to upgrade apps from angular 1 to angular 4

查看:91
本文介绍了如何将应用程序从角度1升级到角度4的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我是Angular js的新手,我试图找到经过验证的方法将现有的Angular 1应用升级到Angular 4。

我想要做的是能够同时运行角度1和角度4组件,因为我不想一次性迁移并逐渐进行。

这将是一个如果有人能指出我正确的方向,那将是非常有帮助的。



谢谢。



我的尝试:



我曾尝试使用谷歌搜索几次,但只有一个相关的结果出现在ng-book.com或其他什么。不是很有帮助。

他们似乎没有对混合应用说什么。

解决方案

如果你的项目不是很复杂你可以逐步做到。 Bootstrap并使用AngularJS和Angular 6并排运行两个框架,并将AngularJS中的端口组件逐个移植到Angular。



看看这个官方文章升级模块

Hi,

I am new to Angular js and I was trying to find out proven ways to upgrade an existing Angular 1 app to Angular 4.
What I wish to do is to be able to run the angular 1 and angular 4 components together since I do not want to migrate all at once and proceed gradually.
It will be a great help if some could point me in the right direction.

Thanks.

What I have tried:

I have tried googling a few times but only one relevant result comes up ng-book.com or something. Not very helpful.
They do not seem to be saying anything about the hybrid application.

解决方案

If your project is not very complex you may do it incrementally. Bootstrap and use both AngularJS and Angular 6 running the two frameworks side by side and port components from AngularJS to Angular one by one.

Take a look at this official article and this Upgrade module


这篇关于如何将应用程序从角度1升级到角度4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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