You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> **Please Note:** Due to the very limited scope of this module, I do not anticipate needing to make very many changes to it. Expect long stretches of zero updates—that does not mean that the module is outdated.
9
+
> **Please Note:** Due to the very limited scope of this module, I do not anticipate need to making many changes to it. Expect long stretches of zero updates—that does not mean that the module is outdated.
8
10
9
-
A vue.js plugin to implement a middleware pipeline between your routes.
11
+
A vue.js plugin to implement a middleware pipeline for vue-router.
10
12
11
-
It can be utilized for many use cases like protecting a route or to request an API to populate the store before a route is loaded.
13
+
It can have many use cases like protecting a route or to request an API to populate the store before a route is loaded.
12
14
The plugin utilizes [vue-router navigation guards](https://router.vuejs.org/guide/advanced/navigation-guards.html) to implement easy to use, readable and more organized middlewares for your routes.
// you may also use an array for multiple middlewares
151
+
middleware: {
152
+
ignore: [AuthMiddleware, LoggerMiddleware]
153
+
attach: [ExampleMiddleware, AnotherMiddleware]
154
+
}
83
155
}
84
156
}
85
157
]
86
158
87
159
```
88
160
89
-
If the user tries to access `/profile` route, the attached middlewares will be resolved in a synchronous order. i.e. `AuthExampleMiddleware` will be resolved first and `AnotherMiddleware` afterwards.
0 commit comments