I´d like to know if exists a better way to render a view like this: For the first load I need bring data from Controller like usual but after apply a filter in same page I need to start use AngularJS and never more uses Razor. Is there a way to do that ? Thanks for all.
4 Answers
There are multiple ways to implement ASP.Net MVC with AngularJs.
I personally like Mini SPA (Silos). You can watch Miguel A Castro's video here.
You can also download the source at his website.
What it does is when a request comes in, it goes to ASP.Net MVC Route first. Then, Angular Route takes over the rest. It is a very slick design.
FYI: I also use Angular.Net Helpers to generate strongly typed views.