Blame view
app/scripts/main.js
1.27 KB
|
c87bc1f33
|
1 2 |
/*jshint unused: vars */
require.config({
|
|
ffc06a7f8
|
3 |
waitSeconds: 0, |
|
c87bc1f33
|
4 5 6 7 |
paths: {
'angular' : '../bower_components/angular/angular',
'angular-mocks': '../bower_components/angular-mocks/angular-mocks',
'angular-route': '../bower_components/angular-route/angular-route',
|
|
6f105dbd5
|
8 9 10 |
'angular-cookies': '../bower_components/angular-cookies/angular-cookies',
'select2': '../bower_components/select2/select2',
'ui-select2': '../bower_components/angular-ui-select2/src/select2'
|
|
c87bc1f33
|
11 12 13 14 15 16 17 18 |
},
shim: {
'angular' : {'exports' : 'angular'},
'angular-route': ['angular'],
'angular-cookies': ['angular'],
'angular-mocks': {
deps:['angular'],
'exports':'angular.mock'
|
|
6f105dbd5
|
19 20 21 22 23 |
},
'ui-select2': [
'select2',
'angular'
]
|
|
c87bc1f33
|
24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
},
priority: [
'angular'
]
});
//http://code.angularjs.org/1.2.1/docs/guide/bootstrap#overview_deferred-bootstrap
window.name = 'NG_DEFER_BOOTSTRAP!';
require([
'angular',
'app',
'angular-route',
'angular-cookies',
|
|
6f105dbd5
|
38 39 |
'ui-select2',
'directives/helperdirective'
|
|
c87bc1f33
|
40 41 42 43 44 45 46 47 48 |
], function(angular, app, ngRoutes, ngCookies) {
'use strict';
/* jshint ignore:start */
var $html = angular.element(document.getElementsByTagName('html')[0]);
/* jshint ignore:end */
angular.element().ready(function() {
angular.resumeBootstrap([app.name]);
});
});
|