1234567891011121314 |
- 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'
- })
- .otherwise('/')
- })
|