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
Copy file name to clipboardExpand all lines: docs/en/api/router-view.md
+8-8
Original file line number
Diff line number
Diff line change
@@ -1,22 +1,22 @@
1
-
# `<router-view>` (En) <br><br> *Cette page est en cours de traduction française. Revenez une autre fois pour lire une traduction achevée ou [participez à la traduction française ici](https://github.com/vuejs-fr/vue-router).*
1
+
# `<router-view>`
2
2
3
-
The `<router-view>`component is a functional component that renders the matched component for the given path. Components rendered in `<router-view>`can also contain its own`<router-view>`, which will render components for nested paths.
3
+
Le composant `<router-view>`est un composant fonctionnel qui fait le rendu du composant correspondant au chemin donné. Les composants rendus dans `<router-view>`peuvent aussi contenir leur propre`<router-view>`, qui fera le rendu des composants pour les chemins imbriqués.
4
4
5
5
### Props
6
6
7
7
-**name**
8
8
9
-
- type: `string`
9
+
- type: `string`
10
10
11
-
-default: `"default"`
11
+
-défaut : `"default"`
12
12
13
-
When a `<router-view>`has a name, it will render the component with the corresponding name in the matched route record's`components` option. See [Named Views](../essentials/named-views.md)for an example.
13
+
Lorsqu'un `<router-view>`a un nom, il fera le rendu du composant correspondant à ce nom dans les itinéraires de route correspondant à l'option`components`. Voir les [Routes nommées](../essentials/named-views.md)pour un example.
14
14
15
-
### Behavior
15
+
### Comportement
16
16
17
-
Any non-name props will be passed along to the rendered component, however most of the time the per-route data is contained in the route's params.
17
+
Les propriétés sans nom seront passées le long du composant rendu, toutefois la plupart du temps, les données par route seront contenues dans les paramètres de la route.
18
18
19
-
Since it's just a component, it works with`<transition>`and`<keep-alive>`. When using the both together, make sure to use `<keep-alive>` inside:
19
+
Car c'est juste un composant, il fonctionne avec`<transition>`et`<keep-alive>`. Lorsque vous utilisez les deux ensemble, soyez sûr d'utiliser `<keep-alive> à l'intérieur :
0 commit comments