clickHandler() {
this.http.get('ip:port/xyz')
.subscribe(response => {
console.log(response);
[].push.apply(this.temp, response);
console.log(this.temp);
});
}
Upon checking the console, the response object is displayed as follows:
{lat: 29, lon: 82, label: "A", draggable: true}
However, when attempting to fill the dummy array with the response object, it remains empty. A closer inspection in the console reveals an array with zero length.