Answer the question
In order to leave comments, you need to log in
Dynamic url Vuejs + NuxtJS?
You need to create a dynamic url on vuejs.
The problem is that it works on dev, but after the build it says that the page was not found.
axios.get('http://jsonplaceholder.typicode.com/posts/' + this.$route.params.post)
.then(response => {
this.post = response.data;
})
.catch(e => {
this.errors.push(e)
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question