3
Answers

MVC with AngularJS Using Strongly Typed

Thiruppathi R

Thiruppathi R

8y
302
1
   Usually MVC (asp.net) Json return Value assign to angularJS $scope.
      But I need MVC Model variable directly  use Like $scope .
 
app.controller('ConsultantPersonalInformationController', 
function($scope, $filter, $http)
{
   $scope
.user = {
               id
: 1,
               firstName
: @Model.UserBaseViewModel.FirstName,
               lastName
: @Model.UserBaseViewModel.LastName };
});
 
 
Any one help me
 
Answers (3)