如何将我的 Extjs 4.2.x 项目放入最新的 Angular 应用程序中 [英] How can I put my Extjs 4.2.x project inside latest Angular App
问题描述
我有一个内置于 Ext4.2.x 的大型应用程序.现在的需求是在 Angular 中做进一步的开发.我正在尝试围绕 Ext 应用程序创建 Angular 的包装器,以便我们可以使用 angular 进一步开发/迁移代码.直到两个框架应该协调工作.
I have a large app built in Ext4.2.x. Now the requirement is to do further development in Angular. I am trying to create a wrapper of Angular around Ext app so that we can use angular for further development/ migration of code piece by piece. till the time both the framework should work in harmony.
- 我已经使用 angular-cli 创建了应用程序(名称是:NgApp)脚手架并将该代码放在 Ext 应用程序的根目录中(ExtNg强>).
- 创建一个文件夹(ExtNg/NgBuild)来保存 Angular JS 应用程序(NgApp)的构建文件.
- 构建角度应用程序:ng build -vc false -op C:\Ext\Ext6Grid\ngBuild
- 我修改了 app.js
autCreateViewPort: false
所以它会启动 ext 应用程序但不会呈现它. 修改我的 Ext 应用程序的 index.html 正文如下:
- I have created app(name is: NgApp) scaffolding using angular-cli and put that code inside the root directory of Ext app(ExtNg).
- Created a folder(ExtNg/NgBuild)to hold the build file of angular JS app(NgApp).
- Built angular app : ng build -vc false -op C:\Ext\Ext6Grid\ngBuild
- I have modified app.js
autCreateViewPort: false
so it will initiate the ext app but will not render it. modified my Ext app's index.html body as below:
<代码><正文><app-root></app-root><script type="text/javascript" src="ngBuild/inline.bundle.js"></script><script type="text/javascript" src="ngBuild/polyfills.bundle.js"></script><script type="text/javascript" src="ngBuild/styles.bundle.js"></script><script type="text/javascript" src="ngBuild/main.bundle.js"></script>