[翻译]  How to embed whole angularjs app into existing app which is separately deployed

[CHINESE]  如何将整个angularjs应用程序嵌入到单独部署的现有应用程序中


I have application with logic similar to google's app switcher, let me call it Wrapper. This application take place across all google services and has consistent UI everywhere.

我的应用程序逻辑类似于谷歌的应用程序切换器,让我称之为包装器。此应用程序在所有Google服务中进行,并且在任何地方都具有一致的UI。

I am looking for solution to inject into my Wrapper application several finished different apps with their own styles, views and JS. They are written with different technologies like React and Angular.

我正在寻找解决方案,以我们的Wrapper应用程序注入几个完成不同的应用程序与自己的样式,视图和JS。它们使用不同的技术编写,如React和Angular。

How can I implement such architecture? Are Web-components a solution for this, if yes - please provide me some examples. (The aim is to deploy wrapper separately and all content applications too, so they will have consistent UI and logic from wrapper).

我该如何实现这样的架构? Web组件是否是解决方案,如果是 - 请提供一些示例。 (目的是单独部署包装器和所有内容应用程序,因此它们将具有来自包装器的一致UI和逻辑)。

Please do not mention the iframe!

请不要提iframe!

1 个解决方案

#1


0  

We have done similar model called UI shell, where any developer can develop a microapp in any tech stack like angular, react, vue etc but the main app will consume them as part of its application and display them as part of the main app. Are you looking for similar approach.

我们已经完成了类似的模型,称为UI shell,任何开发人员都可以在任何技术堆栈中开发微应用程序,如angular,react,vue等,但主应用程序将使用它们作为其应用程序的一部分,并将它们显示为主应用程序的一部分。你在寻找类似的方法吗?


注意!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系我们删除。



 
© 2014-2018 ITdaan.com 粤ICP备14056181号