Skip to content

Traduction de api/router-view.md #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 27, 2017
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/en/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
- [Lazy Loading (En)](advanced/lazy-loading.md)
- Réference de l'API
- [router-link (En)](api/router-link.md)
- [router-view (En)](api/router-view.md)
- [router-view](api/router-view.md)
- [The Route Object (En)](api/route-object.md)
- [Router Constructor Options (En)](api/options.md)
- [Router Instance (En)](api/router-instance.md)
Expand Down
16 changes: 8 additions & 8 deletions docs/en/api/router-view.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
# `<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).*
# `<router-view>`

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

### Props

- **name**

- type: `string`
- type : `string`

- default: `"default"`
- défaut : `"default"`

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

### Behavior
### Comportement

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.
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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

par route


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

``` html
<transition>
Expand Down