Skip to content

Commit e0a15eb

Browse files
committed
Doc formatting tweaks
1 parent e0a16f7 commit e0a15eb

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

docs/api/mixins/Navigation.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,17 @@ this.replaceWith('/users/10?showAge=true');
3636
### `goBack()`
3737

3838
Programmatically go back to the last route and remove the most recent
39-
entry from the browser history. Return false if it's the first entry in the app history, true otherwise.
39+
entry from the browser history. Returns `true` unless it's the first entry
40+
in the app history.
4041

4142
#### Example
4243

4344
```js
4445
this.goBack();
4546
```
46-
If you want to make sure there is an history entry
47+
48+
If you want to make sure there was a history entry to go back to, use the return value:
49+
4750
```js
4851
if (!this.goBack()) {
4952
this.transitionTo('/otherpage')

0 commit comments

Comments
 (0)