Semaphore/public/js/semaphore_auth.js

34 lines
757 B
JavaScript
Raw Normal View History

2014-08-24 19:36:34 +02:00
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'])
});
});