I have a Multi-App structured Angular project within an Asp.Net MVC project. I need to include 2 Angular Apps in SinglePage. But Angular renders only the initial App tag. Can someone suggest a solution?
Asked
Active
Viewed 35 times
0

Oleg Valter is with Ukraine
- 9,619
- 8
- 37
- 59

ROBY
- 1
-
You will have to share the routing of sub-apps with main app. The steps involved are nicely documented here - https://medium.com/disney-streaming/combining-multiple-angular-applications-into-a-single-one-e87d530d6527 – Amogh Sarpotdar Jul 12 '20 at 07:39
-
Another approach you could investigate is by using Angular elements, but I suspect it won't be possible to have routing in the individual applications (what would you see in the browser navigation bar when navigating?). – julianobrasil Jul 12 '20 at 08:36
-
@ Amogh Sarpotdar - Thanks for the article. It helped me. – ROBY Jul 19 '20 at 07:02
-
1@julianobrasil - Yes, i also implemented my requirement with angular elements in my main project and it is working fine.Thanks again for the help. – ROBY Jul 19 '20 at 07:04
-
Good to know!!! I think one of the hugest things people are about to discover is Angular Elements. It's, by far, the easiest way to build up micro frontends. I don't think we have another framework that allows this kind of stuff with so tiny changes in your codebase. – julianobrasil Jul 19 '20 at 12:56