Skip to content

Instantly share code, notes, and snippets.

@asicfr
Created February 22, 2013 13:36
Show Gist options
  • Save asicfr/5013415 to your computer and use it in GitHub Desktop.
Save asicfr/5013415 to your computer and use it in GitHub Desktop.
entite route
// author module add into global module (see mainctrl.js)
var bookStoreauthor = angular.module('bookStore.author', ['bookStore.author.services'], function($routeProvider, $locationProvider) {
// author list
$routeProvider.when('/author', {
templateUrl: 'gen/pages/author/list.html'
});
// author create
$routeProvider.when('/author/create', {
templateUrl: 'gen/pages/author/create.html'
});
// author edit
$routeProvider.when('/author/:id', {
templateUrl: 'gen/pages/author/edit.html'
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment