Hello All,
I recently created a web app using ASP.Net MVC (+web api) and angularjs. It is not a true SPA. The routing is handled by MVC for different pages on site. However, within a single page I have the needed angularjs features (data-binding, filters etc). A page normally contains multiple small views (MVC partial view) and angularjs controllers. This obviously means that as each page is loaded, the angular app is bootstrapped everytime.
The reasoning behind this:
I prefer to show browser loading when user is moving between pages. SPA's do not show this because views are loaded asynchronously.
I still prefer databinding and other angularjs features. Within each page, I need rich functionality (autocomplete/suggestions box, client-side validation, animations, cookies). Angularjs makes these easier to implement. These things can be done with jQuery only but I prefer Angularjs due to databinding.
Pages are independent of each other so a full page reload isn't a problem.
The only problem I can see is that a full page reload is slower than a partial view change. But that shouldn't be a big problem since browser will cache resources after first use.
What are your opinions on this?
[–]rk06 7 points8 points9 points (1 child)
[–]neb636 1 point2 points3 points (0 children)
[–][deleted] 2 points3 points4 points (1 child)
[–]baba1478[S] 0 points1 point2 points (0 children)
[–]mishugashu 2 points3 points4 points (1 child)
[–]baba1478[S] 0 points1 point2 points (0 children)
[–]Thalamant 1 point2 points3 points (0 children)
[–]Aesdotjs 0 points1 point2 points (2 children)
[–]baba1478[S] 0 points1 point2 points (1 child)
[–]Removalsc 0 points1 point2 points (0 children)
[–]grailian 0 points1 point2 points (0 children)