Passing data from ASP.MVC controller to Angular controller Typescript
<p>I have an app that will be started from external app possibly with a parameter (only one) coming with url. I have a following Action inside my MVC Home Controller:</p>

<pre><code>    public JsonResult LoadParam()
    {
        var query = Request.Url.Query.ToString();
        string id = HttpUtility.ParseQueryString(query).Get(0);
        return Json(id);
    }
</code></pre>

<p>My problem is how do I call this from angular code? Normally I would use Get, but then I am passing "Home/LoadParam" url and it does not make any sense. I tried passing $location.url(), but then I won't hit LoadParam() action since my single page app stands on Home/Index URL. Not to mention that I couldn't make $location to get me any result (always getting an empty string). <br>
So, to sum up - my question is how do I call this action from angualr code to retrieve the value of parameter when the app is open?</p>