this.sensorinfo.forEach(element => { // console.log(element); this.sensorName.push(element.name); this.sensorIds.push(element.id); }); /