-
Notifications
You must be signed in to change notification settings - Fork 0
/
modules.js
36 lines (26 loc) · 995 Bytes
/
modules.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
(function(module){
angular
.module(module.name, ['ui.router'].concat(module.dependencies))
.config(['$stateProvider', '$urlRouterProvider', function(stateProvider, urlRouterProvider){
stateProvider
.state(module.name, {
url: '/app',
templateUrl: module.path + '/views/layout.html'
});
urlRouterProvider.otherwise("/app/child");
}]);
window.addEventListener('load', function(){
angular.bootstrap(document, [module.name]);
});
})({"name":"app","path":"\\modules\\app","dependencies":["app.child"]});
(function(module){
angular
.module(module.name, module.dependencies)
.config(['$stateProvider', function(stateProvider){
stateProvider
.state(module.name, {
url: '/child',
templateUrl: module.path + '/views/layout.html'
});
}]);
})({"name":"app.child","path":"\\modules\\app.child","dependencies":[]});