-
Notifications
You must be signed in to change notification settings - Fork 13
/
Application.js
21 lines (15 loc) · 964 Bytes
/
Application.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import angular from 'angular';
import uiRouter from 'angular-ui-router';
import uiRouterStateHelper from 'angular-ui-router.statehelper';
import Config from './Config';
import Runners from './Runners';
import AppView from './modules/Starter/views/layout.jade';
import Controllers from './modules/Starter/Controllers';
const appname = 'Starter'; /** App and root module name */
const deps = [uiRouter, 'ui.router.stateHelper']; /** All global dependencies */
const modules = [Controllers]; /** All app dependencies */
document.getElementById('app-container').innerHTML = AppView(); /** Store our app. (Getting html from jade) */
angular.module(appname, deps.concat(modules)).config(Config).run(Runners); /** Declare root module */
angular.bootstrap(document, [appname]); /** Bootstrap our application. Поехали! */
/** Export appname. Just in case. */
export default appname;