index.route.js
1.88 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
(function() {
'use strict';
angular
.module('dialoga')
.config(routeConfig);
/** @ngInject */
function routeConfig($stateProvider, $urlRouterProvider) {
$stateProvider
.state('inicio', {
url: '/',
views: {
'header': { templateUrl: 'app/partials/header/header.html' },
'main': {
templateUrl: 'app/partials/inicio/inicio.html',
controller: 'InicioController',
controllerAs: 'inicio'
},
'footer': { templateUrl: 'app/partials/footer/footer.html' }
}
})
.state('programas', {
url: '/programas',
views: {
'header': { templateUrl: 'app/partials/header/header.html' },
'main': {
templateUrl: 'app/partials/programas/programas.html',
controller: 'ProgramasController',
controllerAs: 'programas'
},
'footer': { templateUrl: 'app/partials/footer/footer.html' }
}
})
.state('sobre', {
url: '/sobre',
views: {
'header': { templateUrl: 'app/partials/header/header.html' },
'main': {
templateUrl: 'app/partials/article/article.html',
controller: 'ArticleController',
controllerAs: 'article'
},
'footer': { templateUrl: 'app/partials/footer/footer.html' }
}
})
.state('termos-de-uso', {
url: '/termos-de-uso',
controller: 'ArticleController',
views: {
'header': { templateUrl: 'app/partials/header/header.html' },
'main': {
templateUrl: 'app/partials/article/article.html',
controller: 'ArticleController',
controllerAs: 'article'
},
'footer': { templateUrl: 'app/partials/footer/footer.html' }
}
})
;
$urlRouterProvider.otherwise('/');
}
})();