ASP.NET MVC and AngularJS passing QueryString data
Posted on 2016-07-28
I have sub application in AngularJS . I thought of creating a ASP.NET MVC project as baseline project since I needed web api as wrapper for cross domain access.
This AngularJS UI calls external Rest Service.
This subapplication is opened from another Main Application which passes data in query string.
I need to call the external Rest service passing these variables from angularjs.
This is one page application.
1. How do I pass variable from MVC model to Angularjs coming in Querystring when application Page loads
2. I am handling these variables as Session objects in MVC after getting from QueryString. These are important keys variables for this sub application. What is the best practice to maintain these variables in MVC. As mentioned this is one page application for now.