Change IFrame to create component on the fly
Following the "Create-On-The-Fly" template, given in: https://github.com/maximusk/Here-is-what-you-need-to-know-about-dynamic-components-in-Angular
Achieving this will eliminate the use of "IFrame", making the framework more robust
adding import of esnext to dynamically load module: https://stackoverflow.com/questions/36103641/dynamic-system-import-with-webpack
Using Systemjs as library: https://stackoverflow.com/questions/46321477/get-and-load-a-remote-component-module-in-an-angular-4-4-app
Do you have any update about this, I am very interesting in this. have you got this solution working without iframe?
@charzhao actually I tried one solution, but it might have issue when inheriting css so I think it was a failure. One UI plugin example that I recently found out is Team Foundation Server: they chose to use IFrame as well (handled security etc), so I think the current method (iframe) is sufficient.