This commit is contained in:
Max Lynch
2013-11-25 17:01:06 -06:00
parent a8bb330c82
commit 0c3d1bf93d
4 changed files with 20 additions and 16 deletions

View File

@@ -46,7 +46,7 @@
.config(function($routeProvider, $locationProvider) {
$routeProvider.when('/', {
$routeProvider.when('/cats', {
templateUrl: 'page1.html',
controller: 'Page1Ctrl'
});
@@ -59,6 +59,10 @@
templateUrl: 'page3.html',
});
$routeProvider.otherwise({
redirectTo: '/cats'
});
// configure html5 to get links working on jsfiddle
//$locationProvider.html5Mode(true);