Last active
December 14, 2015 02:28
-
-
Save asicfr/5013366 to your computer and use it in GitHub Desktop.
Routes principales
This file contains hidden or 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
// Welcome module | |
var bookStoremain = angular.module('bookStore.main', [], function($routeProvider, $locationProvider) { | |
// Declare welcome route | |
$routeProvider.when('/welcome', { | |
templateUrl : 'partials/welcome.html', | |
controller: 'MainCtrl' | |
}); | |
// Declare futur route | |
$routeProvider.when('/inprogress', { | |
templateUrl : 'main/inprogress.html', | |
controller: 'MainCtrl' | |
}); | |
// Declare default route | |
$routeProvider.otherwise({ | |
redirectTo : '/welcome', | |
controller: 'MainCtrl' | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment