Skip to content

Commit b05ede3

Browse files
committed
typos
1 parent 2de2d70 commit b05ede3

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

docs/global-guard.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
As the name implies, the navigation guards provided by vue-router are primarily used to guard navigations either by redirecting it or canceling it. There are a number of ways to hook into the route navigation process: globally, per-route, or in-component.
33

44
!!! warning
5-
Remember that params or query changes won't trigger enter/leave navigation guards. You can either watch the $route object to react to those changes, or use the beforeRouteUpdate in-component guard, see [vue-router global navigation guards](https://router.vuejs.org/en/advanced/navigation-guards.html).
5+
Remember that params or query changes won't trigger enter/leave navigation guards. You can either watch the $route object to react to those changes or use the beforeRouteUpdate in-component guard, see [vue-router global navigation guards](https://router.vuejs.org/en/advanced/navigation-guards.html).
66

77
### Myfirebase global navigation guards.
88

@@ -16,7 +16,7 @@ Typically, The middleware generated might look something like this:
1616
/**
1717
* MiddlewareNmae, you can get access
1818
* to myfirebase functionalities and vue auth guard via actions.
19-
* myfirebase => [auth, storage, store]
19+
* myfirebase => [auth, storage, store, firestore]
2020
* actions => [to, from, next()]
2121
*
2222
* @param {object} myfirebase
@@ -56,7 +56,7 @@ export default middlewares
5656

5757
#### Auth Middleware
5858

59-
Myfirebase comes with an exmaple of auth middleware called AuthMiddleware located in middlewares directory, this will check if the user is signed-in or not, and redirecting users to the login page.
59+
Myfirebase comes with an example called AuthMiddleware located in middlewares directory, this will check if the user is signed-in or not, and be redirecting users to the login page.
6060

6161
As you may notice, you will find in the **route.js** file a **metadata** called auth, which is assigned to **App** and **UpdateProfile** components.
6262

@@ -67,7 +67,7 @@ As you may notice, you will find in the **route.js** file a **metadata** called
6767
/**
6868
* AuthMiddleware, you can get access
6969
* to myfirebase functionalities and vue auth guard via actions.
70-
* myfirebase => [auth, storage, store]
70+
* myfirebase => [auth, storage, store, firestore]
7171
* actions => [to, from, next()]
7272
*
7373
* @param {object} myfirebase
@@ -134,6 +134,4 @@ const routes = [{
134134
components: NotFound
135135
}
136136
]
137-
```
138-
139-
These guards have the exact same signature as global before guards.
137+
```

0 commit comments

Comments
 (0)