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

Method go

packages/common/testing/src/location_mock.ts:92–105  ·  view source on GitHub ↗
(path: string, query: string = '', state: any = null)

Source from the content-addressed store, hash-verified

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);

Callers 2

location_spec.tsFile · 0.45
historyGoMethod · 0.45

Calls 5

prepareExternalUrlMethod · 0.95
pushHistoryMethod · 0.95
normalizeQueryParamsFunction · 0.50
pushMethod · 0.45

Tested by

no test coverage detected