Hi Milad, As mentioned here,you have managed to solve your problem based on the discussion. Recently I also started looking for solution to the similar and want to develop exactly the same way as directory structure which you have described in above comments. So I have a request if you could share your POC work related to this if not actual project structure which could help us in gaining some insight how this can be achieved in angular 2.
Any help in this regard highly appreciated. On Tuesday, August 30, 2016 at 7:12:01 PM UTC+5:30, Milad wrote: > > Hi Sander, just wanted to let you know that I ended proceeding with your > suggestion of having separate apps. SPA routing is done within each app, > while, going from one app to the other does require a page refresh to load > the new html file. There is a json file that maintains a list of all the > routes for all the apps, and each app overrides the ones that belong to it > to perform angular routing, otherwise, the redirect happens to go other > apps. > > Thanks again for your suggestion. > > On Thursday, July 14, 2016 at 12:29:05 AM UTC-4, Sander Elias wrote: >> >> Hi Milad, >> >> In the scenario described above, would each smaller app (i.e., non >>> app-shell) also be bootstrapped for Angular 2 individually, or would the >>> bootstrapping only happen on the app-shell? >> >> That depends on how you solve this. I would share the common components, >> but would create different SPA's that work alongside each other (main app >> in index.html, and then app-a.html and so on), That way you can navigate >> between the spa's by normal navigation, and all apps are fully >> self-contained. This way you are sure teams can't mess up outside their own >> part(s). Also this will keep memory pressure lower, as each team might have >> their own dependencies. This matters even when you do lazy-loading. >> (unloading isn't flaw-free..) >> >> Will the router be able to handle loading content (components/templates) >>> from external apps? >> >> Within limits, yes it can. >> >> Regards >> Sander >> > -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
