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: src/v2/guide/routing.md
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -1,16 +1,16 @@
1
1
---
2
-
title: Routing
2
+
title: Routage
3
3
type: guide
4
4
order: 21
5
5
---
6
6
7
-
## Official Router
7
+
## Routeur officiel
8
8
9
-
<pclass="tip">**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/vuejs.org).**</p>For most Single Page Applications, it's recommended to use the officially-supported [vue-router library](https://github.com/vuejs/vue-router). For more details, see vue-router's [documentation](http://vuejs.github.io/vue-router/).
9
+
Pour la plupart des applications monopages, il est recommandé d'utiliser la bibliothèque officiellement supportée [vue-router](https://github.com/vuejs/vue-router). Pour plus de détails, voir la[documentation de vue-router](http://vuejs.github.io/vue-router/).
10
10
11
-
## Simple Routing From Scratch
11
+
## Du routage simple en partant de zéro
12
12
13
-
If you just need very simple routing and do not wish to involve a full-featured router library, you can do so by dynamically rendering a page-level component like this:
13
+
Si vous avez simplement besoin d'un routage très simple et ne souhaitez pas ajouter une bibliothèque riche en fonctionnalités, vous pouvez le faire en déclenchant dynamiquement le rendu d'un composant de page de cette manière :
14
14
15
15
```js
16
16
constNotFound= { template:'<p>Page not found</p>' }
@@ -35,9 +35,9 @@ new Vue({
35
35
render (h) { returnh(this.ViewComponent) }
36
36
})
37
37
```
38
+
Combiné à l'API HTML5 History, vous pouvez construire un routeur client basique mais parfaitement fonctionnel.
39
+
Pour en voir une démonstration, faites un checkout [de cette application d'exemple](https://github.com/chrisvfritz/vue-2.0-simple-routing-example).
38
40
39
-
Combined with the HTML5 History API, you can build a very basic but fully-functional client-side router. To see that in practice, check out [this example app](https://github.com/chrisvfritz/vue-2.0-simple-routing-example).
41
+
## Intégrer des routeurs tierce-partie
40
42
41
-
## Integrating 3rd-Party Routers
42
-
43
-
If there's a 3rd-party router you prefer to use, such as [Page.js](https://github.com/visionmedia/page.js) or [Director](https://github.com/flatiron/director), integration is [similarly easy](https://github.com/chrisvfritz/vue-2.0-simple-routing-example/compare/master...pagejs). Here's a [complete example](https://github.com/chrisvfritz/vue-2.0-simple-routing-example/tree/pagejs) using Page.js.
43
+
S'il y a un routeur tierce-partie que vous préférez utiliser, tel que [Page.js](https://github.com/visionmedia/page.js) ou [Director](https://github.com/flatiron/director), l'intégration est [tout aussi simple](https://github.com/chrisvfritz/vue-2.0-simple-routing-example/compare/master...pagejs). Voici [un exemple complet](https://github.com/chrisvfritz/vue-2.0-simple-routing-example/tree/pagejs) qui utilise Page.js.
0 commit comments