How to call APIs after the page is loaded? #8963
Unanswered
mhabbasi-gh
asked this question in
Questions (Nuxt 2)
Replies: 1 comment 1 reply
-
Read docs about life-cycle to choose the method from step at what you want something to happen: https://nuxtjs.org/docs/2.x/concepts/nuxt-lifecycle But, as you asked you can fetch data using
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I understand that I can call APIs using
asyncData
andfetch
but they are loaded on server side. So I was wondering how can I call my APIs after the page is loaded using an event listener like pressing a button or scrolling?Beta Was this translation helpful? Give feedback.
All reactions