Skip to content

Commit c16ff17

Browse files
MachinisteWebposva
authored andcommitted
Doc EN: navigation-guards.md: minor adjustements (#1600)
Signed-off-by: Bruno Lesieur <bruno.lesieur@gmail.com>
1 parent b84021c commit c16ff17

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

docs/en/advanced/navigation-guards.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ const Foo = {
9191
beforeRouteUpdate (to, from, next) {
9292
// called when the route that renders this component has changed,
9393
// but this component is reused in the new route.
94-
// For example, for a route with dynamic params /foo/:id, when we
95-
// navigate between /foo/1 and /foo/2, the same Foo component instance
94+
// For example, for a route with dynamic params `/foo/:id`, when we
95+
// navigate between `/foo/1` and `/foo/2`, the same `Foo` component instance
9696
// will be reused, and this hook will be called when that happens.
9797
// has access to `this` component instance.
9898
},
@@ -120,14 +120,14 @@ You can directly access `this` inside `beforeRouteLeave`. The leave guard is usu
120120

121121
### The Full Navigation Resolution Flow
122122

123-
1. Navigation triggered
124-
2. Call leave guards in deactivated components
125-
3. Call global `beforeEach` guards
126-
4. Call `beforeRouteUpdate` guards in reused components (2.2+)
127-
5. Call `beforeEnter` in route configs
128-
6. Resolve async route components
129-
7. Call `beforeRouteEnter` in activated components
130-
8. Call global `beforeResolve` guards (2.5+)
123+
1. Navigation triggered.
124+
2. Call leave guards in deactivated components.
125+
3. Call global `beforeEach` guards.
126+
4. Call `beforeRouteUpdate` guards in reused components (2.2+).
127+
5. Call `beforeEnter` in route configs.
128+
6. Resolve async route components.
129+
7. Call `beforeRouteEnter` in activated components.
130+
8. Call global `beforeResolve` guards (2.5+).
131131
9. Navigation confirmed.
132132
10. Call global `afterEach` hooks.
133133
11. DOM updates triggered.

0 commit comments

Comments
 (0)