diff --git a/webroot/js/base.js b/webroot/js/base.js index 6cb674d4..e95c5933 100644 --- a/webroot/js/base.js +++ b/webroot/js/base.js @@ -81,8 +81,8 @@ NetCommonsApp.factory('NetCommonsModal', ['$uibModal', function($uibModal) { /** * base controller */ -NetCommonsApp.controller('NetCommons.base', function( - $scope, $location) { +NetCommonsApp.controller('NetCommons.base', + ['$scope', '$location', function($scope, $location) { /** * Base URL @@ -148,4 +148,4 @@ NetCommonsApp.controller('NetCommons.base', function( $scope.sending = true; }; - }); + }]); diff --git a/webroot/js/color_palette_picker.js b/webroot/js/color_palette_picker.js index a91c3361..f99836b4 100644 --- a/webroot/js/color_palette_picker.js +++ b/webroot/js/color_palette_picker.js @@ -53,8 +53,10 @@ NetCommonsApp.directive('ncColorPalettePicker', [ } }; }]); + + NetCommonsApp.controller('ncColorPalettePickerCtrl', - function($scope, $attrs) { + ['$scope', '$attrs', function($scope, $attrs) { $scope.colorValue = $attrs.colorValue; - } + }] ); diff --git a/webroot/js/title_icon_picker.js b/webroot/js/title_icon_picker.js index 7083d7b3..bb9bcb4a 100644 --- a/webroot/js/title_icon_picker.js +++ b/webroot/js/title_icon_picker.js @@ -43,8 +43,10 @@ NetCommonsApp.directive('ncTitleIconPicker', [function() { } }; }]); + + NetCommonsApp.controller('ncTitleIconPickerCtrl', - function($scope, $attrs) { + ['$scope', '$attrs', function($scope, $attrs) { $scope.titleIcon = $attrs.titleIcon; - } + }] );