Questions tagged [nuxtjs]

Please use the nuxt.js tag rather than this one for Nuxt general questions.

Please use the nuxt.js tag rather than this one for Nuxt general questions.

319 questions
3
votes
1 answer

Keep current list of data before replace by up coming list of data Vuejs and vue-infinite-loading

I would like to keep a list of data before another up coming list of data replaced. I'm using this plugin in my vuejs project: https://peachscript.github.io/vue-infinite-loading to loading more data. Scenario: Reload to get list of data by calling…
CHHUM Sina
  • 435
  • 5
  • 13
2
votes
0 answers

How to refresh the JWT token in nuxt.js?

I want to use JWT authentication in my nuxtjs app but it's not refreshing the token. For testing purposes, I set the access token expire time 5 seconds and refresh token for 30 minutes. Access token expire after 5 seconds but the token is not…
Arpit Soni
  • 101
  • 2
  • 5
2
votes
1 answer

What is the best way to use async / await inside Nuxt plugin?

I wanted to do api calls inside nuxt plugin using vuex action. But when i am using await keyword Nuxt is giving me an error saying Parsing error: Unexpected reserved word 'await'. So, how can i use promise inside my Nuxt Plugin? Here's my associated…
Tanvir Rahman
  • 651
  • 1
  • 11
  • 31
2
votes
1 answer

How to add google tag manager inside script

I'm using nuxtjs. this is my google tag manager script: