[Vuejs]-How to pass Array to IFrame Element in Vue.js?

0👍

You’ll have to JSON.stringify it before hand:

 getMultipleMarkers() {
    var markers = [this.reports];
    console.log(markers)
    return `http://127.0.0.1:8000/multipleMarakers.html?reports=${JSON.stringify(markers)}`;
 },

And then parse it when you get it:

console.log(JSON.parse(data['reports']));

Leave a comment