Month: June 2013

Binding Razor forms to an AngularJS model with Html.TextBoxFor()

I was hooking up my login page work with angular, but wanted to keep the MVC model authentication (because it works and I like it). So I tried this: @Html.TextBoxFor(m => m.userName, new { ng-model = “logon.userName” }) Surprisingly this

Tagged with: , , , , ,
Top