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