diff --git a/x-pack/plugins/watcher/public/components/duration_select/duration_select.js b/x-pack/plugins/watcher/public/components/duration_select/duration_select.js index a0c81a3a0ef16..9fab3504ac638 100644 --- a/x-pack/plugins/watcher/public/components/duration_select/duration_select.js +++ b/x-pack/plugins/watcher/public/components/duration_select/duration_select.js @@ -31,7 +31,7 @@ app.directive('durationSelect', function ($injector) { replace: true, controllerAs: 'durationSelect', bindToController: true, - link: function ($scope, $ctrl) { + link: function ($scope, $element, $attrs, $ctrl) { $scope.durationSelect.form = $ctrl; }, controller: class DurationSelectController extends InitAfterBindingsWorkaround { diff --git a/x-pack/plugins/watcher/public/components/kbn_tabs/components/kbn_tab/kbn_tab.js b/x-pack/plugins/watcher/public/components/kbn_tabs/components/kbn_tab/kbn_tab.js index bc492324d7fde..4b2cffefb661a 100644 --- a/x-pack/plugins/watcher/public/components/kbn_tabs/components/kbn_tab/kbn_tab.js +++ b/x-pack/plugins/watcher/public/components/kbn_tabs/components/kbn_tab/kbn_tab.js @@ -23,7 +23,7 @@ app.directive('kbnTab', function () { controllerAs: 'kbnTab', bindToController: true, controller: class KbnTabController {}, - link: function ($scope, kbnTabs) { + link: function ($scope, $ele, attrs, kbnTabs) { $scope.kbnTabs = kbnTabs; } }; diff --git a/x-pack/plugins/watcher/public/components/xpack_aria_describes/xpack_aria_describes.js b/x-pack/plugins/watcher/public/components/xpack_aria_describes/xpack_aria_describes.js index 8590d94283b42..2fbbe42f7e5a2 100644 --- a/x-pack/plugins/watcher/public/components/xpack_aria_describes/xpack_aria_describes.js +++ b/x-pack/plugins/watcher/public/components/xpack_aria_describes/xpack_aria_describes.js @@ -12,7 +12,7 @@ const app = uiModules.get('xpack/watcher'); app.directive('xpackAriaDescribes', function () { return { restrict: 'A', - link: function ($scope, attr) { + link: function ($scope, $ele, attr) { if (!Object.keys(attr).includes('id')) { throw new Error(`An element with xpack-aria-describes="${attr.xpackAriaDescribes}" does not have an id attribute defined`); } diff --git a/x-pack/plugins/watcher/public/directives/json_input.js b/x-pack/plugins/watcher/public/directives/json_input.js index 24a12d14379ab..a4ee023f93328 100644 --- a/x-pack/plugins/watcher/public/directives/json_input.js +++ b/x-pack/plugins/watcher/public/directives/json_input.js @@ -14,7 +14,7 @@ uiModules return { restrict: 'A', require: 'ngModel', - link: function (scope, attrs, ngModelCntrl) { + link: function (scope, $el, attrs, ngModelCntrl) { ngModelCntrl.$formatters.push(toJSON); ngModelCntrl.$parsers.push(fromJSON); diff --git a/x-pack/plugins/watcher/public/directives/tooltip/tooltip.js b/x-pack/plugins/watcher/public/directives/tooltip/tooltip.js index f6c7ca3842ce2..a6f5a8ca28126 100644 --- a/x-pack/plugins/watcher/public/directives/tooltip/tooltip.js +++ b/x-pack/plugins/watcher/public/directives/tooltip/tooltip.js @@ -30,7 +30,7 @@ uiModules.get('xpack/watcher') transclude: true, replace: true, scope: true, - link: function ($scope, attr) { + link: function ($scope, $el, attr) { $scope.text = attr.text; $scope.placement = attr.placement || 'top'; $scope.delay = attr.delay || 400;