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

Function provideHashLocationStrategy

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

Source from the content-addressed store, hash-verified

208// Note: For internal use only with `RouterModule`. Standalone setup via `provideRouter` should
209// provide hash location directly via `{provide: LocationStrategy, useClass: HashLocationStrategy}`.
210function provideHashLocationStrategy(): Provider {
211 return {provide: LocationStrategy, useClass: HashLocationStrategy};
212}
213
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`.

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…