0

I have an angular2 app that has a navbar, a sidebar and a content-area at: http://localhost:4200/

When navbar/sidebar items are clicked, I want the content-area to get it's content from other angular2 apps we will have set up, kind of like a front-end microservice approach.

So far, the only way I can load them is in an iframe:

<iframe src="http://localhost:3000/" frameborder="0" scrolling="no" seamless="seamless" style="position: absolute; width: 100%; height: 100%; border: none; overflow-y: hidden;"></iframe>

Is there another way to load other angular2 apps into my main app without iFrames? Is it possible for these ui apps to export just it's main component and then import that for use in the main app?

user1873196
  • 57
  • 2
  • 8

0 Answers0