Loading other angular apps within a shell angular

2019-09-17 02:29发布

问题:

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