Answer the question
In order to leave comments, you need to log in
What is the correct way to make backend requests in nuxt.js?
How to create requests from components (components) to the API in the Nuxt.js framework?
The backend works over the http protocol.
If you can, show an example with store
but you can use without it.
I tried to use nuxtServerInit
it and the request is made, I get the data, but I can’t further transfer them from nuxtServerInit
the component to show them. I guess that's nuxtServerInit
not what it was designed for. AsyncData
only works with components from pages
.
You need to get the categories and send them to the sidebar.
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