Static GitHub Issues

[306] How can i use redirect from inside the component's methods?

prev: Nuxt.js with Socket.io Sample
next: Access store or req obj in plugins

How can i use redirect from inside the component's methods? usually i assign the redirect method to global variable, is there any more elegant way to do this?

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c261">#c261</a>)</em></sub></div>