Skip to content

Instantly share code, notes, and snippets.

@asicfr
Last active December 14, 2015 02:28
Show Gist options
  • Save asicfr/5013366 to your computer and use it in GitHub Desktop.
Save asicfr/5013366 to your computer and use it in GitHub Desktop.
Routes principales
// 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