I am new to Grafana plugin development and also to AngularJS, and there is something that should be simple but I can’t get my head around.
I would like to use a third-party AngularJS library, namely AngularJS Material. Following their Getting started page, (https://material.angularjs.org/latest/getting-started), I am including the needed js file (in query.editor.html, using a script tag), just like the css, and registering the dependencies on the module using angular.module(‘grafana’, [‘ngMaterial’, ‘ngMessages’]); . When I try to use the desired functionality ( ) It doesn’t work, and I’m not surprised about that.
When I check the source of other plugins, I don’t see js libraries imported with tags from html, also don’t see the usage of angular.module(). I think I’m missing some conceptual knowledge. Could anyone point me to the right direction here please? Maybe some material to read on this? I kept searching for answers here in the Community and read the articles about grafana plugin development, but I didn’t find much, even though this seems to be quite a basic thing to do I would say.
Thanks in advance!