mirror of
https://github.com/semaphoreui/semaphore.git
synced 2025-01-20 23:39:56 +01:00
34 lines
757 B
JavaScript
34 lines
757 B
JavaScript
require.config({
|
|
paths: {
|
|
angular: '../vendor/angular/angular.min',
|
|
uiRouter: '../vendor/angular-ui-router/release/angular-ui-router.min',
|
|
jquery: '../vendor/jquery/dist/jquery.min',
|
|
moment: '../vendor/moment/moment',
|
|
bootstrap: '../vendor/bootstrap/dist/js/bootstrap.min',
|
|
couchPotato: '../vendor/angular-couch-potato/dist/angular-couch-potato'
|
|
},
|
|
shim: {
|
|
angular: {
|
|
exports: 'angular'
|
|
},
|
|
uiRouter: {
|
|
deps: ['angular']
|
|
},
|
|
bootstrap: ['jquery']
|
|
}
|
|
});
|
|
|
|
require([
|
|
'jquery',
|
|
'angular',
|
|
'couchPotato',
|
|
'uiRouter',
|
|
'app',
|
|
'routes/auth'
|
|
], function($, angular) {
|
|
var $html = angular.element(document.getElementsByTagName('html')[0]);
|
|
|
|
angular.element().ready(function() {
|
|
angular.bootstrap($html, ['semaphore'])
|
|
});
|
|
}); |