this._weatherService.getWeather(this.location.city,this.location.code).subscribe((response) => {
console.log(response);
this.weather = response;
});
getting this error "message": "Property 'subscribe' does not exist on type 'void'."
Your issuse is because you did not return anything from getWeather()
As said in error void(means you did not return anything)
SO in getWeather() use return:
getWeather(..){
...
return whatever_you_have_to_return;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With