[Vuejs]-How to achieve programatic routing in Nuxt?

0👍

The question seems to have a simple and straightforward answer. But sometimes, we end up surfing the web for a long time and landing up on not what we are looking for a lot of time.

Answer to this question is simple. You can do it in a same way as you do it in normal vue.js app using this.$router.push.

this.$router.push({ path: val });

Leave a comment