I want to upgrade an existing asp.net 4.5 mvc site that has two angular applications on an asp.netcore 2 mvc site with potentially two spa treatments using Aspnet Javascriptservices with the new angular cli template.
Ideally, I want to host two spas in http://mysite/member , and the other in http://mysite/admin
I started with only members , and I initially used <base href="/members/" /> in index.html (but then replaced it with the baseHref property in the .angular-cli.json file (giving the same results) ). that half works. Locally, while debugging the application, it serves the pages and moves as expected, but in the console I see zone.js. errors

If I open a new tab and paste
http://localhost:50930/**members**/sockjs-node/info?t=1518084503138
then i get what looks like the correct answer
{"websocket":true,"origins":["*:*"],"cookie_needed":false,"entropy":2082738399}
If I deploy this Azure application (production) and then going to
https://mysite.azurewebsites.net/members , then the spa does not load at all, and it looks like there is index.html in the js bundle that loads it inside. 
Has anyone managed to use the angular template template as an application filed from the MVC site route? I created a repo ticket, but I suspect it is beyond the scope of the project https://github.com/aspnet/JavaScriptServices/issues/1518
A repo has also been created to demonstrate what I'm trying to achieve. https://github.com/tbertenshaw/MultiSpa
angular asp.net-core single-page-application angular-cli
Tim
source share