I have computed property like this:
display() {
return this.labs.map(function(x, i) {
return [x, this.plotDt[i]];
});
}
It receives the data as props:
props: ["plotDt", "labs"],
Which are arrays of same lenght (I input two arrays: [a,b,c] [1,2,3] and expect to get mapped array: [[a,1],[b,2],[c,3]]
However somehow it does not work and when I check in VueTools I get message: "error during evaluation"
I dont really know what can be wrong in this case.
[a,b,c]actually['a','b','c']? are they both the same length?