Nuxtjs router go, routing _slug

i'm a novice in nuxtjs. I have a following structure:

pages/
--| items/
-----| /info
---------| _slug.vue

I have a route 'website/items/info/39dj83'.

Where '39dj83' is a dynamic variable, that i got from API.

How can i redirect user to that route?

I'm trying something like this:

this.$router.push({name : 'items-info-slug', ???});

How can i send a slug '39dj83'??

Is my structure corrent?

Also how can i get this slug '39dj83' in my slug.vue component?

#nuxt-js

2 Likes19.45 GEEK