Angular.js and ASP.NET MVC 4 [closed]

CommunityQue提出了一个问题:Angular.js and ASP.NET MVC 4 [closed],或许与您遇到的问题类似。


Glad to see this questions was of interest to the community ;) Just for completeness here's what I ended up doing:

I did go with AngularJS and ASP.NET MVC 4 and was glad that I did. Although, Angular has a steep learning curve but its worth it because of the power of directives.

  • We need two-way model data binding - On occassion I needed to set some initial values coming from the MVC controller. I used the ng-init attribute to accomplish this.
  • We need the ability to test views - I followed the AngularJS docs for testing
  • "Save Changes" functionality - I implemented this using a directive in Angular
  • "Notifications" functionality - I implemented this using toastr.js and and directives (schweet)
  • We need to "future proof" our application - I don't know Google's plans for AngularJS, but after working with AngularJS I can't see it going anywhere anytime soon and expected it to become more widely adopted :)