The question might not be very specific but I am wondering how I could use AngularJS + ASP.NET MVC to create a not-really-SPA application.
I am about to start the project for which AngularJS is a great match for the front-end: the front-end will have a lot of dynamic calculations and situations which benefit from the two-way binding model of Angular.
However, I am keen on pre-loading and rendering pages server side where possible in order to shave off some unnecessary AJAX requests. It makes more sense for this application to actually fetch and store the data on page load in the ViewBag like the traditional MVC app than to force it into a SPA, for example. Of course, there are scenarios where AJAX will still be used which are perfect for Angular.
Things that I am interested in, for example:
- How do you initialize a angular model from a ViewBag collection?
- Are there any other alternatives to this approach (I guess, is Angular still a valid choice)?
- Have you come accross any papers/tutorials on the subject?