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
{{ message }}
Repository navigation
Commit 56f502a
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: src/pages/fr/angular/navigation.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,25 +45,25 @@ Pour cela, nous pouvons utiliser les redirections de l'objet routeur. Les redire
45
45
];
46
46
```
47
47
48
-
In our redirect, we look for the index path of our app. Then if we load that, we redirect to the `login` route. The last key of `pathMatch` is required to tell the router how it should look up the path.
48
+
Dans notre redirection, nous recherchons le chemin de l'index de notre application. Si nous chargeons cela, nous redirigeons vers la route de `login`. La dernière clé de `pathMatch` est nécessaire pour dire au routeur comment il doit regarder le chemin.
49
49
50
-
Since we use`full`, we're telling the router that we should compare the full path, even if ends up being something like`/route1/route2/route3`. Meaning that if we have:
50
+
Lorsque nous indiquons`full`, nous disons au routeur que nous devons comparer avec le chemin complet, même si cela finit par ressembler à`/route1/route2/route3`. C'est à dire que si nous avons :
And load`/route1/route2/route3` we'll redirect. But if we loaded`/route1/route2/route4`, we won't redirect, as the paths don't match fully.
57
+
Et chargeons`/route1/route2/route3`, nous serons redirigés. Mais si nous chargeons`/route1/route2/route4`, il n'y aura pas de redirection, car les chemins ne sont pas totalement identiques.
Then load both `/route1/route2/route3`and`/route1/route2/route4`, we'll be redirected for both routes. This is because `pathMatch: 'prefix'` will match only part of the path.
66
+
Alors si nous chargeons `/route1/route2/route3`et`/route1/route2/route4`, nous serons redirigés pour les deux routes. This is because `pathMatch: 'prefix'` will match only part of the path.
0 commit comments