From c090bf7466cd4afb48f0c1c445d4f25587be9102 Mon Sep 17 00:00:00 2001 From: Jan Feuerbach Date: Thu, 16 Feb 2017 16:27:23 +0100 Subject: [PATCH] added injection annotation --- plugins/deviceContact/deviceContact.config.js | 5 +---- plugins/deviceContact/deviceContact.controller.js | 8 +------- .../deviceEventsRealTime/deviceEventsRealTime.config.js | 5 +---- .../deviceEventsRealTime.controller.js | 8 +------- plugins/myplugin/hello.config.js | 6 +----- plugins/myplugin/hello.controller.js | 1 + 6 files changed, 6 insertions(+), 27 deletions(-) diff --git a/plugins/deviceContact/deviceContact.config.js b/plugins/deviceContact/deviceContact.config.js index 45db59f..26b8dcc 100644 --- a/plugins/deviceContact/deviceContact.config.js +++ b/plugins/deviceContact/deviceContact.config.js @@ -5,10 +5,7 @@ .module('myapp.deviceContact') .config(configure); - configure.$inject = [ - 'c8yViewsProvider' - ]; - + /* @ngInject */ function configure(c8yViewsProvider) { c8yViewsProvider.when('/device/:deviceId', { name: 'Contact', diff --git a/plugins/deviceContact/deviceContact.controller.js b/plugins/deviceContact/deviceContact.controller.js index 70c065c..91f236f 100644 --- a/plugins/deviceContact/deviceContact.controller.js +++ b/plugins/deviceContact/deviceContact.controller.js @@ -5,13 +5,7 @@ .module('myapp.deviceContact') .controller('deviceContactCtrl', DeviceContactController); - DeviceContactController.$inject = [ - '$scope', - '$routeParams', - 'c8yDevices', - 'c8yAlert' - ]; - + /* @ngInject */ function DeviceContactController($scope, $routeParams, c8yDevices, c8yAlert) { function load() { diff --git a/plugins/deviceEventsRealTime/deviceEventsRealTime.config.js b/plugins/deviceEventsRealTime/deviceEventsRealTime.config.js index b9751bd..3255485 100644 --- a/plugins/deviceEventsRealTime/deviceEventsRealTime.config.js +++ b/plugins/deviceEventsRealTime/deviceEventsRealTime.config.js @@ -5,10 +5,7 @@ .module('myapp.deviceEventsRealTime') .config(configure); - configure.$inject = [ - 'c8yViewsProvider' - ]; - + /* @ngInject */ function configure(c8yViewsProvider) { c8yViewsProvider.when('/device/:deviceId', { diff --git a/plugins/deviceEventsRealTime/deviceEventsRealTime.controller.js b/plugins/deviceEventsRealTime/deviceEventsRealTime.controller.js index 7d886fc..4aad5fa 100644 --- a/plugins/deviceEventsRealTime/deviceEventsRealTime.controller.js +++ b/plugins/deviceEventsRealTime/deviceEventsRealTime.controller.js @@ -5,13 +5,7 @@ .module('myapp.deviceEventsRealTime') .controller('deviceEventsRealTimeCtrl', DeviceEventsRealTimeController); - DeviceEventsRealTimeController.$inject = [ - '$scope', - '$routeParams', - 'c8yRealtime', - 'c8yAlert' - ]; - + /* @ngInject */ function DeviceEventsRealTimeController($scope, $routeParams, c8yRealtime, c8yAlert) { var deviceId = $routeParams.deviceId; var eventsChannel = '/events/' + deviceId; diff --git a/plugins/myplugin/hello.config.js b/plugins/myplugin/hello.config.js index ebda49c..2d96f5b 100644 --- a/plugins/myplugin/hello.config.js +++ b/plugins/myplugin/hello.config.js @@ -5,11 +5,7 @@ .module('myapp.hello') .config(configure); - configure.$inject = [ - 'c8yNavigatorProvider', - 'c8yViewsProvider' - ]; - + /* @ngInject */ function configure( c8yNavigatorProvider, c8yViewsProvider diff --git a/plugins/myplugin/hello.controller.js b/plugins/myplugin/hello.controller.js index e2b88fe..d583f23 100644 --- a/plugins/myplugin/hello.controller.js +++ b/plugins/myplugin/hello.controller.js @@ -5,6 +5,7 @@ .module('myapp.hello') .controller('HelloController', HelloController); + /* @ngInject */ function HelloController() { var vm = this;