vendredi 2 octobre 2015

Angular+MVC: dynamic application loading or two separate applications?

Need help with AngularJs project structure. I have an ASP.NET MVC + Web API application (MVC part here is just landing page + authentication pages. After this it redirects on Index.cshtml with the application itself). The problem is that depending on a user I have to show two "kind of different" applications (there are small core-main part and lots of not shared widgets).

Right now it's one browserified application. However, I've encountered a problem that I need the same routing.

Solutions which I see: implement 2 applications and redirect to different Index.chtml page after login. Or somehow bootstrap core module and dynamically load 1st or 2nd application with its routing. But not sure that it's possible with AngularJs.

Any thought, help?




Aucun commentaire:

Enregistrer un commentaire