Shyam Kumar
Shyam Kumar

Reputation: 21

Is there a way to render Angular app inside another HTML page?

I would like to know if there is a way to take the build files from an angular app and add it as part of another angular dist folder and launch that app inside a div in the parent app. Basically the micro frontend architecture.

I have looking at options like using window object and customising the main.ts or the index.html, but none of them seem to help.

Upvotes: 2

Views: 365

Answers (1)

user2364819
user2364819

Reputation:

Does this other HTML page have angular included if so you can simply use the ng-include directive.

If not your best bet is iframe which is suboptimal

Upvotes: 1

Related Questions