Loading other angular apps within a shell angular application?

纵饮孤独 提交于 2019-12-11 20:54:58

问题


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.


回答1:


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.

hope this will help



来源:https://stackoverflow.com/questions/24199294/loading-other-angular-apps-within-a-shell-angular-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!