Skip to content

Instantly share code, notes, and snippets.

@dontpaniclabsgists
Created February 17, 2025 20:18
Show Gist options
  • Save dontpaniclabsgists/0a060e5305441968a2aea030ecb9c118 to your computer and use it in GitHub Desktop.
Save dontpaniclabsgists/0a060e5305441968a2aea030ecb9c118 to your computer and use it in GitHub Desktop.
methods: {
async fetchData() {
this.post = null;
this.loading = true;
var response = await fetch(''https://localhost:7185/api/weatherforecast'');
if (response.ok) {
this.post = await response.json();
this.loading = false;
}
}
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment