stackviz/app/js/main.js
Austin Clark 093c02d0b9 Fix lint errors and update eslint
Fixes a couple of lint errors caught by `npm run lint` in timeline-
overview.js and timeline-viewport.js. Also restructures the test-
details controller to use appropriate `this.` syntax instead of
`$scope.`

In addition, eslint and eslint-config-openstack have been updated,
and a new .eslintrc.json config file has been created to tweak some
specific rules for stackviz.

Change-Id: I9e1fe5121621730eb3efda4b99e9fe182f399aee
2016-02-04 13:52:12 -07:00

39 lines
796 B
JavaScript

'use strict';
var angular = require('angular');
// angular modules
require('angular-ui-router');
require('angular-ui-bootstrap');
require('angular-fontawesome');
require('./templates');
require('./controllers/_index');
require('./services/_index');
require('./directives/_index');
require('./filters/_index');
var requires = [
'ui.router',
'ui.bootstrap',
'templates',
'app.controllers',
'app.services',
'app.directives',
'app.filters',
'picardy.fontawesome'
];
angular.module('app', requires);
angular.module('app').constant('AppSettings', require('./constants'));
var onConfig = require('./on_config');
angular.module('app').config(onConfig);
var onRun = require('./on_run');
angular.module('app').run(onRun);
angular.bootstrap(document, ['app'], {
strictDi: true
});