Answer the question
In order to leave comments, you need to log in
NuxtJS how to display html received via json?
On the backend, a json object with an article is given. On the frontend, I get it, the code is from the NuxtJS project:
async asyncData ({ params, error }) {
const pst = await axios.get('http://backend/post/?url=' + params.url)
return {
post: pst.data
}
}
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