or.yarn add vue-heatmapjs.Consumption.To utilize this plugin bring in it in your main.js.// main.js.bring in Vue from 'vue'.import heatmap from 'vue-heatmapjs'.Vue.use( heatmap).And after that you can incorporate the v-heatmap directive to the dom elements you would like to track....You may toggle the heatmap on and also off through passing an expression in to the regulation:....Button Heatmap....
Using the regulation to a solitary embedded component:.You can easily pay attention for occasions by passing an afterAdd technique within the plugin possibilities, which are going to enable you to accessibility and also procedure the celebrations recorded for the heatmap:.// main.js.Vue.use( heatmap, afterAdd( information) console.log( records).// you can easily shoot this back to your analytics hosting server.,. ).An amazing venture readily available on GitHub, aid the writer through expanding it!