-
-
Save anjanawijesundara/d88579b4482dd22e43c3 to your computer and use it in GitHub Desktop.
app.js Part One
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var app = angular.module('Application', ['ngRoute']); | |
app.config(['$routeProvider', function($routeProvider) { | |
$routeProvider. | |
when('/', {templateUrl: 'pages/lists.html', controller: 'CustomerListControler'}). | |
when('/NewCustomer', {templateUrl: 'pages/new.html', controller: 'CustomerAddControler'}). | |
when('/UpdateCustomer/:id', {templateUrl: 'pages/edit.html', controller: 'CustomerEditControler'}). | |
otherwise({redirectTo: '/'}); | |
}]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment