MCPcopy Index your code
hub / github.com/angular/angular / pushHistory

Method pushHistory

packages/common/testing/src/location_mock.ts:202–208  ·  view source on GitHub ↗
(path: string, query: string, state: any)

Source from the content-addressed store, hash-verified

200 }
201
202 private pushHistory(path: string, query: string, state: any) {
203 if (this._historyIndex > 0) {
204 this._history.splice(this._historyIndex + 1);
205 }
206 this._history.push(new LocationState(path, query, state));
207 this._historyIndex = this._history.length - 1;
208 }
209}
210
211class LocationState {

Callers 2

simulateHashChangeMethod · 0.95
goMethod · 0.95

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected