Static GitHub Issues

[1738] wish: defining middleware functions in component

prev: problems with beforeRouteEnter
next: Route transitions do not work inside nuxt-child

It's not too hard to create a middleware file but I would love it if middleware methods can be defined inline in the page components! Just my wish.

<!--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/c1561">#c1561</a>)</em></sub></div>