()
| 124 | } |
| 125 | |
| 126 | forward() { |
| 127 | if (this._historyIndex < this._history.length - 1) { |
| 128 | this._historyIndex++; |
| 129 | this._subject.next({ |
| 130 | 'url': this.path(), |
| 131 | 'state': this.getState(), |
| 132 | 'pop': true, |
| 133 | 'type': 'popstate', |
| 134 | }); |
| 135 | } |
| 136 | } |
| 137 | |
| 138 | back() { |
| 139 | if (this._historyIndex > 0) { |
no test coverage detected