Recently I have been writing plugins for Grafana and had a desire to make a panel that would give the user the ability to use the data from the query within HTML with AngularJS syntax. I have not come up with a good solution for using AngularJS to easily parse an HTML string with AngularJS syntax but I was able to do it with VueJS. Here is the vueToHTML(…) function that I wrote:

Here is the documentation for how to use the above function:

This of course requires the vue.js library to be included on the page to work. Let me know what you think and as always happy coding!!! 😎

Leave a Reply

Your email address will not be published. Required fields are marked *