dose async/await and es6+ work in this environment?
Yes it does. When bootstrapping a vue application, babel comes with it. So you can use async/await and ES2018 shenanigans
I thinks you can use AsyncData method from vue but I didn't tryed. It was not usefull in this use case. ๐
asyncData is a Nuxt-specific thing that runs before mounting. Normal Vue only has synchronous data() to initialize.
asyncData
data()
Ho my bad ๐ I guess I'm totaly used to nuxt ๐
Who are you calling a ho :o
Sorry ? it was an Onomatopeia ๐ฑ I didn't mean to be mean at all๐ฎ
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
dose async/await and es6+ work in this environment?
Yes it does. When bootstrapping a vue application, babel comes with it. So you can use async/await and ES2018 shenanigans
I thinks you can use AsyncData method from vue but I didn't tryed.
It was not usefull in this use case. ๐
asyncData
is a Nuxt-specific thing that runs before mounting.Normal Vue only has synchronous
data()
to initialize.Ho my bad ๐ I guess I'm totaly used to nuxt ๐
Who are you calling a ho :o
Sorry ?
it was an Onomatopeia ๐ฑ I didn't mean to be mean at all๐ฎ