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

Method go

packages/common/src/location/location.ts:165–171  ·  view source on GitHub ↗

* Changes the browser's URL to a normalized version of a given URL, and pushes a * new item onto the platform's history. * * @param path URL path to normalize. * @param query Query parameters. * @param state Location history state. *

(path: string, query: string = '', state: any = null)

Source from the content-addressed store, hash-verified

163 *
164 */
165 go(path: string, query: string = '', state: any = null): void {
166 this._locationStrategy.pushState(state, '', path, query);
167 this._notifyUrlChangeListeners(
168 this.prepareExternalUrl(path + normalizeQueryParams(query)),
169 state,
170 );
171 }
172
173 /**
174 * Changes the browser's URL to a normalized version of the given URL, and replaces

Implementers 1

SpyLocationpackages/common/testing/src/location_m

Calls 4

prepareExternalUrlMethod · 0.95
normalizeQueryParamsFunction · 0.90
pushStateMethod · 0.45