Skip to content
This repository has been archived by the owner on Sep 24, 2021. It is now read-only.

Commit

Permalink
added injection annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Feuerbach committed Feb 16, 2017
1 parent 7ac5852 commit c090bf7
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 27 deletions.
5 changes: 1 addition & 4 deletions plugins/deviceContact/deviceContact.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@
.module('myapp.deviceContact')
.config(configure);

configure.$inject = [
'c8yViewsProvider'
];

/* @ngInject */
function configure(c8yViewsProvider) {
c8yViewsProvider.when('/device/:deviceId', {
name: 'Contact',
Expand Down
8 changes: 1 addition & 7 deletions plugins/deviceContact/deviceContact.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
5 changes: 1 addition & 4 deletions plugins/deviceEventsRealTime/deviceEventsRealTime.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@
.module('myapp.deviceEventsRealTime')
.config(configure);

configure.$inject = [
'c8yViewsProvider'
];

/* @ngInject */
function configure(c8yViewsProvider) {

c8yViewsProvider.when('/device/:deviceId', {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
6 changes: 1 addition & 5 deletions plugins/myplugin/hello.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@
.module('myapp.hello')
.config(configure);

configure.$inject = [
'c8yNavigatorProvider',
'c8yViewsProvider'
];

/* @ngInject */
function configure(
c8yNavigatorProvider,
c8yViewsProvider
Expand Down
1 change: 1 addition & 0 deletions plugins/myplugin/hello.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
.module('myapp.hello')
.controller('HelloController', HelloController);

/* @ngInject */
function HelloController() {
var vm = this;

Expand Down

0 comments on commit c090bf7

Please sign in to comment.