<div ng-app="app">
<p><a href="#/home">Home</a> | <a href="#/contact">Contact</a></p>
<ng-view></ng-view>
</div>
// Create our app.
var app = angular.module('app', ['ngRoute']);
// Configure the route provider.
app.config(function($routeProvider, $locationProvider) {
$routeProvider.
when('/home', {
template: '<h2>Home</h2>',
controller: 'HomeController'
}).
when('/contact', {
template: '<h2>Contact</h2>',
controller: 'ContactController'
}).
otherwise({
redirectTo: '/home'
});
});
app.controller('ShowOrderController', function() {
});
app.controller('ContactController', function() {
debugger;
});