Documentation about angular.element('grafana-app').injector().get()

  • What Grafana version and what operating system are you using?
    8.2.7

  • What are you trying to achieve?
    To find a documentation about “angular.element(‘grafana-app’).injector().get(‘…’)”

I want to get the “Teams” out of some JS-Code like I can read the current role with "angular.element(‘grafana-app’).injector().get(‘contextSrv’)…

  • How are you trying to achieve it?
    Via Javascript in the HTML-Panel

  • What happened?

  • What did you expect to happen?
  • Can you copy/paste the configuration(s) that you are having problems with?
    see above

  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.

  • Did you follow any online instructions? If so, what is the URL?
    I couldn’t find a documentation about all “angular.element(‘grafana-app’).injector()”-get-Functions.

Thank you for a response!