-
Notifications
You must be signed in to change notification settings - Fork 1
/
app.js
23 lines (20 loc) · 774 Bytes
/
app.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
'use strict';
import backendFactory from 'backend';
import angular from 'angular';
import uiRouter from 'angular-ui-router';
import uiBootstrap from 'angular-ui-bootstrap';
import angularDragula from 'angular-dragula';
import mainBarModule from 'main-bar';
import projectModule from 'project';
import 'bootstrap';
mainBarModule.configure();
projectModule.configure();
angular.module('main', ['ui.router', uiBootstrap, angularDragula(angular), mainBarModule.name, projectModule.name])
.factory('backend', backendFactory)
.config(function ($stateProvider, $urlRouterProvider) {
$urlRouterProvider.otherwise('projects');
});
// Bootstrap Angular
angular.element(document).ready(function () {
angular.bootstrap(document, ['main']);
});