MCPcopy Create free account
hub / github.com/angular/angular / go

Method go

packages/common/src/location/location.ts:171–177  ·  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

169 *
170 */
171 go(path: string, query: string = '', state: any = null): void {
172 this._locationStrategy.pushState(state, '', path, query);
173 this._notifyUrlChangeListeners(
174 this.prepareExternalUrl(path + normalizeQueryParams(query)),
175 state,
176 );
177 }
178
179 /**
180 * 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