'Is there any way to get current nuxt.js middleware of page?

I am curious if we can reach the current page's middleware from any component?



Solution 1:[1]

You can access it on

$router.matched.meta.middleware

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 David