We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0a16f7 commit e0a15ebCopy full SHA for e0a15eb
docs/api/mixins/Navigation.md
@@ -36,14 +36,17 @@ this.replaceWith('/users/10?showAge=true');
36
### `goBack()`
37
38
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.
+entry from the browser history. Returns `true` unless it's the first entry
40
+in the app history.
41
42
#### Example
43
44
```js
45
this.goBack();
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
50
51
if (!this.goBack()) {
52
this.transitionTo('/otherpage')
0 commit comments