Created
February 22, 2013 13:36
-
-
Save asicfr/5013415 to your computer and use it in GitHub Desktop.
entite route
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
// 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