12345678910111213141516171819202122 |
- app.config(function($routeProvider,$locationProvider) {
- $locationProvider.hashPrefix('')
- $routeProvider
- .when('/', {
- templateUrl: 'app/views/home.template.html',
- // controller: 'Home'
- })
- .when('/books',{
- templateUrl: 'app/views/books-list.template.html',
- controller: 'BooksList'
- })
- .when('/books/:id',{
- templateUrl: 'app/views/books-details.template.html',
- controller: 'BookDetails'
- })
- .when('/login',{
- templateUrl: 'app/views/login.template.html',
- controller: 'Login'
- })
- .otherwise('/')
- })
|