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

Function providePathLocationStrategy

packages/router/src/router_module.ts:216–218  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

214// Note: For internal use only with `RouterModule`. Standalone setup via `provideRouter` does not
215// need this at all because `PathLocationStrategy` is the default factory for `LocationStrategy`.
216function providePathLocationStrategy(): Provider {
217 return {provide: LocationStrategy, useClass: PathLocationStrategy};
218}
219
220export function provideForRootGuard(): any {
221 const router = inject(Router, {optional: true, skipSelf: true});

Callers 1

forRootMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…