Sharing Top Content from the Angular-sphere.

Part 6

  • Go to Solution Explorer > Open your Entity Data Model ( “MyModel.edmx”) > Right Click On Blank area for Get Context Menu > Update Model From Database…
  • As registration form is a very common form for Internet application, so I would like to create a simple registration form to demonstrate validation and Save data to the database.
  • //Save Simple Registration Form [HttpPost] public JsonResult Register(User u) { string message = “”; // we will save data to the database if (ModelState.
  • Step-5: Add a new js File for add a new AngularJS controller and a Factory
  • SaveData = function (data) { if ($scope.submitText == ‘Save’) { $scope.submitted = true; $scope.message = ”; if ($scope.isFormValid) { $scope.submitText = ‘Please Wait…’

Part 3 – How to create a login page using AngularJS in MVC4 application. Here in this post I explained how can we create simple registration form with validation using angularjs and asp.net mvc4. As registration form is a very common form for Internet application, so I would like to create a simple registration form here to demonstrate validation and Save data to the database

@dotnetawesome: I explained how can we create a simple registration form with validation using AangularJS and aspnet mvc4.

here you can see I have used $q, this is a angularjs service with help us to run asynchronous function and return result when processing done.

Part 6