Skip to content

Spanish docs for v2.6 #1531

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 2 commits into from
Jun 22, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
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
16 changes: 13 additions & 3 deletions docs/es/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,19 @@
- [Comportamiento del scroll](advanced/scroll-behavior.md)
- [Lazy loading](advanced/lazy-loading.md)
- API
- [router-link](api/router-link.md)
- [router-view](api/router-view.md)
- [El objeto Route](api/route-object.md)
- [Opciones del constructor de Router](api/options.md)
- [rutas](api/options.md#routes)
- [modo](api/options.md#mode)
- [base](api/options.md#base)
- [linkActiveClass](api/options.md#linkactiveclass)
- [linkExactActiveClass](api/options.md#linkexactactiveclass)
- [scrollBehavior](api/options.md#scrollbehavior)
- [parseQuery / stringifyQuery](api/options.md#parsequery--stringifyquery)
- [fallback](api/options.md#fallback)
- [La instancia de Router](api/router-instance.md)
- [Propiedades](api/router-instance.md#properties)
- [Métodos](api/router-instance.md#methods)
- [El objeto Route](api/route-object.md)
- [Inyección en componentes](api/component-injections.md)
- [router-link](api/router-link.md)
- [router-view](api/router-view.md)
3 changes: 2 additions & 1 deletion docs/es/advanced/scroll-behavior.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ La función `scrollBehavior` recibe los objetos de ruta `to` y `from`. El tercer
La función puede devolver un objeto de posición de `scroll`. El objeto puede ser de la forma:

- `{ x: number, y: number }`
- `{ selector: string }`
- `{ selector: string, offset? : { x: number, y: number }}` (offset solo soportado a partir de la versión 2.6.0+)

Si se devuelve un valor *falso* o un objeto vacio, no ocurrirá ningún desplazamiento.

Expand Down Expand Up @@ -53,6 +53,7 @@ scrollBehavior (to, from, savedPosition) {
if (to.hash) {
return {
selector: to.hash
// , offset: { x: 0, y: 10 }
}
}
}
Expand Down
14 changes: 14 additions & 0 deletions docs/es/api/options.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
children?: Array<RouteConfig>; // para sub-rutas
beforeEnter?: (to: Route, from: Route, next: Function) => void;
meta?: any;

// 2.6.0+
caseSensitive?: boolean; // utilizar o no matcheo case sensitive (valor por defecto: false)
pathToRegexpOptions?: Object; // Opciones path-to-regexp para compilar expresiones regulares
}
```

Expand Down Expand Up @@ -86,3 +90,13 @@
- tipo: `Function`

Provee funciones parse / stringify para _query string_ personalizadas. Sobreescribe la función por defecto.

### fallback

> 2.6.0+

- tipo: `boolean`

Controla si el router debe o no utilizar el modo `hash` cuando el navegador no soporte `history.pushState`. El valor por defecto es `true`.

Configurar esto como `false` hace que cada navegación a través de `router-link` sea una recarga completa de la página en IE9. Esto es útil cuando la aplicación es renderizada en el servidor y necesita funcionar en IE9, porque las URL en modo hash no funcionan con SSR.