move controller import to module instantiation

This commit is contained in:
John Mitchell 2016-11-11 17:03:24 -05:00 committed by jaredevantabor
parent 7360e53611
commit 80aaaeb7da
3 changed files with 5 additions and 4 deletions

View File

@ -1,4 +1,4 @@
export default ['jobData', 'jobDataOptions', 'jobLabels', 'jobFinished', 'count', '$scope', 'ParseTypeChange', 'ParseVariableString', 'jobResultsService', '$rootScope', 'eventQueue', '$compile', function(jobData, jobDataOptions, jobLabels, jobFinished, count, $scope, ParseTypeChange, ParseVariableString, jobResultsService, $rootScope, eventQueue, $compile) {
export default ['jobData', 'jobDataOptions', 'jobLabels', 'jobFinished', 'count', '$scope', 'ParseTypeChange', 'ParseVariableString', 'jobResultsService', 'eventQueue', '$compile', function(jobData, jobDataOptions, jobLabels, jobFinished, count, $scope, ParseTypeChange, ParseVariableString, jobResultsService, eventQueue, $compile) {
var getTowerLinks = function() {
var getTowerLink = function(key) {
if ($scope.job.related[key]) {

View File

@ -6,8 +6,6 @@
import {templateUrl} from '../shared/template-url/template-url.factory';
import jobResultsController from './job-results.controller';
export default {
name: 'jobDetail',
url: '/jobs/:id',
@ -156,5 +154,5 @@ export default {
}]
},
templateUrl: templateUrl('job-results/job-results'),
controller: jobResultsController
controller: 'jobResultsController'
};

View File

@ -9,6 +9,8 @@ import jobResultsStdOut from './job-results-stdout/main';
import route from './job-results.route.js';
import jobResultsController from './job-results.controller';
import jobResultsService from './job-results.service';
import eventQueueService from './event-queue.service';
import parseStdoutService from './parse-stdout.service';
@ -20,6 +22,7 @@ export default
.run(['$stateExtender', function($stateExtender) {
$stateExtender.addState(route);
}])
.controller('jobResultsController', jobResultsController)
.service('jobResultsService', jobResultsService)
.service('eventQueue', eventQueueService)
.service('parseStdoutService', parseStdoutService)