JustDancePhotoshopTools = { APP: undefined, /** * We do all the patch work, in order to make node and CEP work. * * @param * @returns */ preInit: function ( ) { // Load jQuery window.$ = window.jQuery = require('jquery'); // Load Angular and Its Deps require("angular"); require("angular-route"); require("angular-material"); require("./error.js"); $('head').append(''); $('body').prepend('
'); }, /** * Initialize the application * * @param * @returns */ init: function ( ) { // Do the PreInitializations this.preInit(); // require all the app specific modules var controllers = require('./controllers'); var services = require('./services'); var core = require('./core'); var config = require("./config.js"); this.APP = angular.module('JustDancePhotoshopToolsApp', [ /* * Angular Services */ 'ngRoute', 'ngMaterial', /* * Load the Core Dependencies */ core, /* * Load the Services */ services, /* * Load the Controllers */ controllers ]) .config(config); // This is where the angular module is bootstrapped and started angular.bootstrap(document.body, ['JustDancePhotoshopToolsApp']) } } module.exports = JustDancePhotoshopTools;