Add missing DI annotations and enable strictDi.
This adds missing `@ngInject` annotations to 2 directives and enables angular's strictDi mode. This patch should fix bulids produced with `gulp prod` that were unusable due to DI errors. Change-Id: Ib3c8810c24afb3c859029d2f8eaf9044416b6fa3
This commit is contained in:
parent
fe6f75a271
commit
a22de1964c
@ -6,6 +6,10 @@ var directivesModule = require('./_index.js');
|
||||
* @ngInject
|
||||
*/
|
||||
function tempestSummary() {
|
||||
|
||||
/**
|
||||
* @ngInject
|
||||
*/
|
||||
var controller = function($scope, $attrs, datasetService) {
|
||||
$scope.$watch('dataset', function(dataset) {
|
||||
var stats = dataset.stats;
|
||||
|
@ -6,6 +6,10 @@ var directivesModule = require('./_index.js');
|
||||
* @ngInject
|
||||
*/
|
||||
function timelineDetails() {
|
||||
|
||||
/**
|
||||
* @ngInject
|
||||
*/
|
||||
var controller = function($scope) {
|
||||
$scope.item = null;
|
||||
|
||||
|
@ -33,4 +33,6 @@ angular.module('app').config(onConfig);
|
||||
var onRun = require('./on_run');
|
||||
angular.module('app').run(require('./on_run'));
|
||||
|
||||
angular.bootstrap(document, ['app']);
|
||||
angular.bootstrap(document, ['app'], {
|
||||
strictDi: true
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user