for example, I wanna use angular-xeditable in dashboard_listing.js
, what should I do?
PS: dashboard_listing.js
located at src/core_plugins/kibana/public/dashboard/listing/dashboard_listing.js
I tried below but failed with Unknown provider: xeditableProvider <- xeditable
//src/core_plugins/kibana/public/kibana.js
import 'angular-xeditable/dist/css/xeditable.min.css';
import 'angular-xeditable/dist/js/xeditable.min';
...
modules.get('kibana', ['xeditable']).run(Notifier.pullMessageFromUrl);
//src/core_plugins/kibana/public/dashboard/listing/dashboard_listing.js
...
export function DashboardListingController($injector, $scope) {
const $filter = $injector.get('$filter');
const confirmModal = $injector.get('confirmModal');
const xeditable = $injector.get('xeditable'); //error here
...
}