Component({ properties: { data:{ type:Object, observer:function(){ this.analyse(); } }, index: Number }, data: { hidden:true, scrollTop1:0, scrollTop2:0 }, methods: { analyse(){ //console.log(this.data); var outputs = this.data.data.output.split(/\n/).map(i=>({text:i})); var actual_outputs = this.data.data.actual_output.split(/\n/).map(i=>({text:i})); var lines = Math.min(outputs.length, actual_outputs.length); for(var i=0;i