                                                    .then(data => {
                                                                this.weather = data;
                                                                this.loading = false;
                                                            })
                                                            .catch(err => {
                                                                console.error('Error fetching weather data:', err);
                  