AngularJS ng-view Registration navigation


Example

  1. We injecting the module in the application
  var Registration=angular.module("myApp",["ngRoute"]);
  1. now we use $routeProvider from "ngRoute"
    Registration.config(function($routeProvider) {

});
  1. finally we integrating the route, we define "/add" routing to the application in case application get "/add" it divert to regi.htm
 Registration.config(function($routeProvider) {
    $routeProvider
    .when("/add", {
        templateUrl : "regi.htm"
    })
});