(segments: string[], direction: RouterDirection, queryString?: string, fragment?: string)
| 385 | } |
| 386 | |
| 387 | private setSegments(segments: string[], direction: RouterDirection, queryString?: string, fragment?: string) { |
| 388 | this.state++; |
| 389 | // Every URL write invalidates any in-flight fragment scroll: a newer nav |
| 390 | // (with or without a fragment, successful or not) should always supersede. |
| 391 | this.fragmentScrollToken++; |
| 392 | writeSegments(window.history, this.root, this.useHash, segments, direction, this.state, queryString, fragment); |
| 393 | } |
| 394 | |
| 395 | private getSegments(): string[] | null { |
| 396 | return readSegments(window.location, this.root, this.useHash); |
no test coverage detected