Hi All, I was trying to use an angular application which I have published as NPM library, this application has lazy loaded modules, one app module which I renamed as CoreModule to avoid conflict with the host application appmodule. But when I try to use this NPM library by installing it to my host angular application using again lazy loaded module, it gives error for routes.forRoot() called twice. So i was wondering is there any way that an complete angular app can be installed inside another angular app as node modules. As I want different teams can work on different application independently and those application can be unified into one separate angular application using Npm install.
Any help on how can this architecture be achieved as this could really help us in structuring out a very large application. On Thursday, December 21, 2017 at 2:41:03 PM UTC+5:30, Sander Elias wrote: > > Hi Maria, > > Yes, you are wrong;-) You can have as many entry pages as you want in one > domain. "routing" between 2 pages is as simple as putting an > old-fashioned hyperlink between the 2. > > <a href="/foldername/myAppname.html">start myApp</a> > <a href="/otherFoldername/">start app that has the name index.html</a> > > Angular has zero bearing on this. Make sure your server is configured so > that it returns the html file that starts your application on 404. Most > servers allow you to do this for each folder. > > 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.
