Get access to $scope and indexPatterns in a hack plugin in Kibana 6.8

I have the following piece of code:

   .run((Private, getAppState, $scope) => {
       // get indexPatterns here...

It gives the following error: [$injector:unpr] Unknown provider: $scopeProvider.

How do I get access to the index patterns? Note that the hack plugin runs on a dashboard.


This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.