Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@anjanawijesundara
Last active August 29, 2015 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anjanawijesundara/d88579b4482dd22e43c3 to your computer and use it in GitHub Desktop.
Save anjanawijesundara/d88579b4482dd22e43c3 to your computer and use it in GitHub Desktop.
app.js Part One
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