Skip to content

Commit eea9631

Browse files
authored
Merge pull request #8 from Kocal/api/router-view.md
Traduction de `api/router-view.md`
2 parents 79cfb0a + 4864f6a commit eea9631

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

docs/en/SUMMARY.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
- [Lazy Loading (En)](advanced/lazy-loading.md)
2525
- Réference de l'API
2626
- [router-link (En)](api/router-link.md)
27-
- [router-view (En)](api/router-view.md)
27+
- [router-view](api/router-view.md)
2828
- [L'objet Route](api/route-object.md)
2929
- [Router Constructor Options (En)](api/options.md)
3030
- [Router Instance (En)](api/router-instance.md)

docs/en/api/router-view.md

+8-8
Original file line numberDiff line numberDiff 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>`
22

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.
44

55
### Props
66

77
- **name**
88

9-
- type: `string`
9+
- type : `string`
1010

11-
- default: `"default"`
11+
- défaut : `"default"`
1212

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.
1414

15-
### Behavior
15+
### Comportement
1616

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.
1818

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 :
2020

2121
``` html
2222
<transition>

0 commit comments

Comments
 (0)