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

Function withHashLocation

packages/router/src/provide_router.ts:669–672  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

667 * @publicApi
668 */
669export function withHashLocation(): RouterHashLocationFeature {
670 const providers = [{provide: LocationStrategy, useClass: HashLocationStrategy}];
671 return routerFeature(RouterFeatureKind.RouterHashLocationFeature, providers);
672}
673
674/**
675 * A type alias for providers returned by `withNavigationErrorHandler` for use with `provideRouter`.

Callers

nothing calls this directly

Calls 1

routerFeatureFunction · 0.85

Tested by

no test coverage detected