Created
February 17, 2025 20:18
-
-
Save dontpaniclabsgists/0a060e5305441968a2aea030ecb9c118 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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