(path: string, query: string = '', state: any = null)
| 90 | } |
| 91 | |
| 92 | go(path: string, query: string = '', state: any = null) { |
| 93 | path = this.prepareExternalUrl(path); |
| 94 | |
| 95 | this.pushHistory(path, query, state); |
| 96 | |
| 97 | const locationState = this._history[this._historyIndex - 1]; |
| 98 | if (locationState.path == path && locationState.query == query) { |
| 99 | return; |
| 100 | } |
| 101 | |
| 102 | const url = path + (query.length > 0 ? '?' + query : ''); |
| 103 | this.urlChanges.push(url); |
| 104 | this._notifyUrlChangeListeners(path + normalizeQueryParams(query), state); |
| 105 | } |
| 106 | |
| 107 | replaceState(path: string, query: string = '', state: any = null) { |
| 108 | path = this.prepareExternalUrl(path); |
no test coverage detected