在外壳角度应用程序中加载其他角度应用程序 [英] Loading other angular apps within a shell angular application?

查看:110
本文介绍了在外壳角度应用程序中加载其他角度应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找在外壳角度应用程序中加载其他角度应用程序的方法。
该方案就像不同的团队将构建不同的角度应用程序,应该在最终用户看到的shell应用程序中加载。很像门户应用程序,允许用户使用shell在应用程序之间切换。


我对创意开放,我正在寻找在角度应用程序中如何实现这一点。所有的应用程序,包括shell应用程序将驻留在同一台主机上。
$ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $


提前感谢,任何帮助都不胜感激。

I am looking for way to load other angular applications within a shell angular application. The scenario is like different teams would build different angular apps, which should be loaded within a shell app the end user's would see. Much like a portal application allowing the user to switch between the apps using the shell.
I am open to idea's and am looking for ways how this can be achieved in angular based applications. All the apps including the shell app would reside on the same host.
Since coming from the Flex dev background, the closest example I can share is one swf loading the other swf.
Thanks in advance and any help is appreciated.

推荐答案

不同的角度应用程序,我喜欢为每个应用程序创建不同的模块,并将它们作为主模块中的依赖项进行注入,您可以使用路由显示不同的视图/控制器。

In place of creating different angular application, I prefer creating different module for each application and inject them as a dependency in main module, you can show different view/controller using route.

希望这将帮助

这篇关于在外壳角度应用程序中加载其他角度应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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