I have the following code and would like to know how I can implement a try / catch with async / await executing the same function:
import Vue from \'vue\' import
see code below:
var app = new Vue({ el: '#app', async mounted() { try{ let response = await axios.get('http://localhost:8080/wp-json/api/v1/skills') this.skills = response }catch(err){ console.log(err) } } })