-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.js
32 lines (29 loc) · 809 Bytes
/
main.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
'use strict';
require.config({
baseUrl: 'app/',
waitSeconds: 20,
paths:{
angular: "vendors/angular/angular.min",
angularRoute:"vendors/angular/angular-route.min",
application : "app",
routeResolver:"components/common/services/routeResolver",
homeController:"components/home/controllers/home-controller",
customersController:"components/customers/controllers/customers-controller",
dataService:"components/customers/services/data-service"
},
shim:{
'application':{
deps: ['angular','angularRoute']
},
'routeResolver':{
deps: ['angular']
},
'angularRoute': {
deps: ['angular']
},
}
});
//Load main module app.js and bootstrap Angular app
require(['application','routeResolver'],function(app){
angular.bootstrap(document, ['app']);
});