Skip to content
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

docs: [RU] Translation update #3285

Merged
merged 38 commits into from
Aug 8, 2020
Merged
Changes from 1 commit
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
fa9c9f0
docs: [RU] Translation update
Alex-Sokolov Aug 14, 2018
24c1eda
Merge remote-tracking branch 'upstream/dev' into ru-translation
Alex-Sokolov Nov 12, 2018
2a85f36
README.md обновление
Alex-Sokolov Nov 12, 2018
1223d3a
Merge remote-tracking branch 'upstream/dev' into ru-translation
Alex-Sokolov Nov 28, 2018
6973332
Merge remote-tracking branch 'upstream/dev' into ru-translation
Alex-Sokolov Dec 7, 2018
ee6c9cb
navigation.md fix
Alex-Sokolov Dec 7, 2018
0b84042
consistent code blocks
Alex-Sokolov Dec 7, 2018
5cade4f
dynamic-matching.md add new section
Alex-Sokolov Dec 7, 2018
ca5e39f
Merge remote-tracking branch 'upstream/dev' into ru-translation
Alex-Sokolov Jan 9, 2019
2d6ade3
dynamic-matching.md fix
Alex-Sokolov Jan 9, 2019
e55f29b
Merge remote-tracking branch 'upstream/dev' into ru-translation
Alex-Sokolov Jan 27, 2019
7c18acb
navigation-guards.md fix title
Alex-Sokolov Jan 27, 2019
351b216
Merge remote-tracking branch 'upstream/dev' into ru-translation
Alex-Sokolov Feb 9, 2019
40c4871
Merge remote-tracking branch 'upstream/dev' into ru-translation
Alex-Sokolov May 6, 2019
12c0033
data-fetching.md fix
Alex-Sokolov May 6, 2019
5f10d9d
Merge remote-tracking branch 'upstream/dev' into ru-translation
Alex-Sokolov Jul 4, 2019
5f9b925
README.md fix
Alex-Sokolov Jul 26, 2019
2476122
Merge remote-tracking branch 'upstream/dev' into ru-translation
Alex-Sokolov Aug 8, 2019
3421e00
(docs) [RU] Translation update
Alex-Sokolov Aug 8, 2019
7b6b02a
fix typo
Alex-Sokolov Aug 8, 2019
5b27550
sync with upstream
Alex-Sokolov Nov 27, 2019
ac332d0
navigation-guards.md update
Alex-Sokolov Nov 27, 2019
808e8b6
redirect-and-alias.md update
Alex-Sokolov Nov 27, 2019
805dcd5
change '$route' to $route
Alex-Sokolov Nov 27, 2019
44e2033
date-fetching.md formatting
Alex-Sokolov Nov 27, 2019
97a6eb2
histort-mode.md update
Alex-Sokolov Nov 27, 2019
693d2a6
navigation-guards.md update
Alex-Sokolov Nov 27, 2019
70565d7
navigation-guards.md update
Alex-Sokolov Nov 27, 2019
9606295
Merge remote-tracking branch 'upstream/dev' into ru-translation
Alex-Sokolov Mar 2, 2020
67c252d
navigation-guards.md fix example
Alex-Sokolov Mar 2, 2020
6e698c0
Merge remote-tracking branch 'upstream/dev' into ru-translation
Alex-Sokolov Apr 12, 2020
5cd52ed
api.md added aria-current-value
Alex-Sokolov Apr 12, 2020
c55ba65
Merge remote-tracking branch 'upstream/dev' into ru-translation
Alex-Sokolov May 11, 2020
d19acf8
Merge remote-tracking branch 'upstream/dev' into ru-translation
Alex-Sokolov Jun 13, 2020
c4837a7
installation.md update
Alex-Sokolov Jun 13, 2020
ec1538d
history-mode.md update
Alex-Sokolov Jun 13, 2020
e422212
Merge remote-tracking branch 'upstream/dev' into ru-translation
Alex-Sokolov Aug 8, 2020
3e19bab
docs: (ru) navigation-failures.md added
Alex-Sokolov Aug 8, 2020
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
Prev Previous commit
Next Next commit
navigation.md fix
  • Loading branch information
Alex-Sokolov committed Dec 7, 2018
commit ee6c9cb587fa3d32b407b158bd20024df96fdea3
22 changes: 11 additions & 11 deletions docs/ru/guide/essentials/navigation.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,34 +14,34 @@ sidebarDepth: 0

При клике на `<router-link>` этот метод вызывается автоматически. Клик по `<router-link :to="...">` эквивалентен программному вызову `router.push(...)`.

| Декларативная запись | Программная запись |
|-------------|--------------|
| Декларативная запись | Программная запись |
|---------------------------|--------------------|
| `<router-link :to="...">` | `router.push(...)` |

В качестве аргумента можно передать строку или объект, описывающий маршрут. Например:

``` js
```js
// строка
router.push('home')

// объект
router.push({ path: 'home' })

// именованный маршрут
router.push({ name: 'user', params: { userId: 123 }})
router.push({ name: 'user', params: { userId: '123' } })

// со строкой запроса, получится /register?plan=private
router.push({ path: 'register', query: { plan: 'private' }})
router.push({ path: 'register', query: { plan: 'private' } })
```

**Примечание**: `params` игнорируются, если указан `path`, что не является случаем с `query` приведённым в примере выше. Вместо этого, вам нужно указать `name` маршрута или вручную указать весь `path` с необходимыми параметрами:

```js
const userId = 123
router.push({ name: 'user', params: { userId }}) // -> /user/123
const userId = '123'
router.push({ name: 'user', params: { userId } }) // -> /user/123
router.push({ path: `/user/${userId}` }) // -> /user/123
// Это НЕ БУДЕТ работать
router.push({ path: '/user', params: { userId }}) // -> /user
router.push({ path: '/user', params: { userId } }) // -> /user
```

Такие же правила применяются и к входному параметру `to` компонента `router-link`.
Expand All @@ -54,8 +54,8 @@ router.push({ path: '/user', params: { userId }}) // -> /user

Действует как `router.push`, с той лишь разницей, что переход осуществляется без добавления новой записи в историю навигации, а заменяет текущую запись в нём.

| Декларативная запись | Программная запись |
|-------------|--------------|
| Декларативная запись | Программная запись |
|-----------------------------------|-----------------------|
| `<router-link :to="..." replace>` | `router.replace(...)` |

## `router.go(n)`
Expand All @@ -64,7 +64,7 @@ router.push({ path: '/user', params: { userId }}) // -> /user

Примеры:

``` js
```js
// перейти на одну запись вперёд, эквивалентно history.forward()
router.go(1)

Expand Down