1

I have a Angular 7 project which is deployed at server X. Basically, this App is a Container Type Application which should load other Angular Modules.

Server side Angular project doesn't have the children Module related definition/information except the cdn url of the angular module to be loaded.

I've tried multiple approaches to achieve this

--> Bundled the Children Module files as SystemJs Modules and tried to import it in the Parent Module using System.import and SystemNgModuleLoader too

--> Exported the Children Modules as UMD and tried to execute it on the Parent Module, then tried loading using the System

however i wasn't able to achieve the said functionality.

Is there any way i can achieve this?

Nikhilesh Shivarathri
  • 1,640
  • 10
  • 16

2 Answers2

0

I doubt if what you are trying to do would be possible.

One option can be for you to use iframes so the content from app2 gets rendered within the app1's iframe container. But that wouldn't be just module loading, but instead a page load within the iframe.

Bv Kay
  • 111
  • 7
0

You can verify the CORS setup here Also take a look at this post? it looks quite similar to what you are trying to achieve

Saqib
  • 371
  • 2
  • 13