-
Notifications
You must be signed in to change notification settings - Fork 1
/
app.js
53 lines (51 loc) · 2.21 KB
/
app.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
angular
.module('bookShop', ['ngMaterial', 'ngRoute', 'books'])
.config(function($mdThemingProvider, $mdIconProvider, $routeProvider) {
$routeProvider.
when('/', {
templateUrl: './src/bookstore/main.html',
controller: 'MainController'
}).
when('/cart', {
templateUrl: './src/bookstore/cart.html',
controller: 'MainController',
}).
when('/book', {
templateUrl: './src/bookstore/book.html',
controller: 'MainController',
}).
when('/result', {
templateUrl: './src/bookstore/result.html',
controller: 'MainController'
}).
when('/search-result', {
templateUrl: './src/bookstore/search-results.html',
controller: 'MainController'
}).
when('/checkout', {
templateUrl: './src/bookstore/checkout.html',
controller: 'MainController'
}).
when('/confirm', {
templateUrl: './src/bookstore/confirmation.html',
controller: 'MainController',
}).
otherwise({
redirectTo: '/'
});
$mdIconProvider
.defaultIconSet("./assets/svg/avatars.svg", 128)
.icon("books" , "./assets/svg/books.svg" , 36)
.icon("checkout" , "./assets/svg/checkout.svg" , 36)
.icon("shopping_cart" , "./assets/svg/shopping_cart.svg" , 36)
.icon("menu" , "./assets/svg/menu.svg" , 24)
.icon("share" , "./assets/svg/share.svg" , 24)
.icon("google_plus", "./assets/svg/google_plus.svg" , 512)
.icon("hangouts" , "./assets/svg/hangouts.svg" , 512)
.icon("twitter" , "./assets/svg/twitter.svg" , 512)
.icon("phone" , "./assets/svg/phone.svg" , 512)
.icon("home" , "./assets/svg/home.svg" , 24);
$mdThemingProvider.theme('default')
.primaryPalette('lime')
.accentPalette('green');
});