]> BookStack Code Mirror - bookstack/blobdiff - resources/assets/js/global.js
Update Ldap.php
[bookstack] / resources / assets / js / global.js
index 9ca335ee7c4546f39b902b807d69c60ab4eff366..9aa5dff527adcf04298e80dc28003f004080448f 100644 (file)
@@ -38,13 +38,17 @@ class EventManager {
         this.listeners[eventName].push(callback);
         return this;
     }
-};
-window.Events = new EventManager();
+}
 
+window.Events = new EventManager();
 
-var services = require('./services')(ngApp, window.Events);
-var directives = require('./directives')(ngApp, window.Events);
-var controllers = require('./controllers')(ngApp, window.Events);
+// Load in angular specific items
+import Services from './services';
+import Directives from './directives';
+import Controllers from './controllers';
+Services(ngApp, window.Events);
+Directives(ngApp, window.Events);
+Controllers(ngApp, window.Events);
 
 //Global jQuery Config & Extensions