Skip to content

Instantly share code, notes, and snippets.

@josenaves
Created March 30, 2014 00:04
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 josenaves/9865104 to your computer and use it in GitHub Desktop.
Save josenaves/9865104 to your computer and use it in GitHub Desktop.
Route - $routeProvider configuration
serviceApp.config(['$routeProvider',
function($routeProvider) {
$routeProvider.
when('/states', { templateUrl: 'list.html', controller: 'controllerEp10'}).
when('/create', { templateUrl: 'create.html', controller: 'controllerEp10'}).
when('/delete', { templateUrl: 'list.html', controller: 'controllerEp10'}).
otherwise({
redirectTo: '/states'
});
}
]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment