-
Notifications
You must be signed in to change notification settings - Fork 1
/
app.js
31 lines (25 loc) · 972 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
24
25
26
27
28
29
30
31
import ng from 'angular';
import './node_modules/bootstrap/dist/css/bootstrap.min.css';
import nguibootstrap from 'angular-ui-bootstrap';
import ngResource from 'angular-resource';
import ngFileUpload from 'ng-file-upload';
import MainController from './MainController.js';
require('./style.css');
var dependentModules = [nguibootstrap, ngResource, ngFileUpload];
var app = ng.module('app', dependentModules);
app.config(['$httpProvider', function config($httpProvider) {
$httpProvider.defaults.withCredentials = true;
$httpProvider.defaults.useXDomain = true;
}]);
app.config(['$locationProvider', function config($locationProvider) {
$locationProvider.html5Mode({
enabled: true,
requireBase: true
});
}]);
app.controller(
'MainController',
['$scope', '$resource', '$http', '$timeout', '$location',
function ($scope, $resource, $http, $timeout, $location) {
return new MainController($scope, $resource, $http, $timeout, $location);
}]);