diff --git a/src/core_plugins/kibana/public/dashboard/index.js b/src/core_plugins/kibana/public/dashboard/index.js index d843a3bb3d11f..e928e00c3c16b 100644 --- a/src/core_plugins/kibana/public/dashboard/index.js +++ b/src/core_plugins/kibana/public/dashboard/index.js @@ -55,6 +55,7 @@ uiRoutes app.directive('dashboardApp', function (Notifier, courier, AppState, timefilter, kbnUrl) { return { + restrict: 'E', controllerAs: 'dashboardApp', controller: function ($scope, $rootScope, $route, $routeParams, $location, Private, getAppState) { diff --git a/src/core_plugins/kibana/public/discover/controllers/discover.js b/src/core_plugins/kibana/public/discover/controllers/discover.js index 62ebb265493f4..19acb15ea009b 100644 --- a/src/core_plugins/kibana/public/discover/controllers/discover.js +++ b/src/core_plugins/kibana/public/discover/controllers/discover.js @@ -77,8 +77,9 @@ uiRoutes app.directive('discoverApp', function () { return { + restrict: 'E', controllerAs: 'discoverApp', - controller: discoverController, + controller: discoverController }; }); diff --git a/src/core_plugins/kibana/public/visualize/editor/editor.js b/src/core_plugins/kibana/public/visualize/editor/editor.js index a1b5cbf2a01b6..548aebe4684b3 100644 --- a/src/core_plugins/kibana/public/visualize/editor/editor.js +++ b/src/core_plugins/kibana/public/visualize/editor/editor.js @@ -58,6 +58,7 @@ uiModules ]) .directive('visualizeApp', function () { return { + restrict: 'E', controllerAs: 'visualizeApp', controller: VisEditor, };