()
| 136 | } |
| 137 | |
| 138 | back() { |
| 139 | if (this._historyIndex > 0) { |
| 140 | this._historyIndex--; |
| 141 | this._subject.next({ |
| 142 | 'url': this.path(), |
| 143 | 'state': this.getState(), |
| 144 | 'pop': true, |
| 145 | 'type': 'popstate', |
| 146 | }); |
| 147 | } |
| 148 | } |
| 149 | |
| 150 | historyGo(relativePosition: number = 0): void { |
| 151 | const nextPageIndex = this._historyIndex + relativePosition; |
no test coverage detected