Nuxt.js: Programmatic navigation: router.push and router.go in nuxtjs ?

Created on 8 Sep 2017  路  3Comments  路  Source: nuxt/nuxt.js

Hi,

What is the right way to do router.push or router.go inside a function in Nuxt ?

thank you !

This question is available on Nuxt.js community (#c1445)

Most helpful comment

@alexverdaguer For example:

this.$router.push({
    path: '/auth/login'
})

All 3 comments

@alexverdaguer For example:

this.$router.push({
    path: '/auth/login'
})

Wow, that was fast.

Thank you !

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nassimbenkirane picture nassimbenkirane  路  3Comments

o-alexandrov picture o-alexandrov  路  3Comments

vadimsg picture vadimsg  路  3Comments

maicong picture maicong  路  3Comments

bimohxh picture bimohxh  路  3Comments