Monday, 26 August 2013

ASP.Net MVC verses WebAPI loading of initial Angular model

ASP.Net MVC verses WebAPI loading of initial Angular model

I have finished a few MVC partial views which load their data using calls
to a webapi Get method, to preload the data used by the angular
controller.
This method works but it feels more logical to do this via the initial
asp.net-MVC Partial view load via @Model for example. Rather than waiting
for the page to load and angular to call the get method of my webservice i
could have prepopulated the Model, but im not sure how this would pass the
data to Angular using this method.

No comments:

Post a Comment