Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • so @merhawi-fissehaye what do I need to do to have simple button that calls some api from server? does that thing exist? Commented Sep 11, 2019 at 10:37
  • Thanks a ton! Can you explain where is the code that is responsible to get data on the server? For example if I run Nuxt in frontend and some php framework in backend do I have to run some javascript in backend for SSR to work? Commented Sep 30, 2019 at 15:17
  • @AhmadMobaraki your can have your backend code written in PHP and call an api from within asyncData. The SSR just works. You don't need to do anything extra. Commented Sep 30, 2019 at 17:11