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

Function withInMemoryScrolling

packages/router/src/provide_router.ts:181–191  ·  view source on GitHub ↗
(
  options: InMemoryScrollingOptions = {},
)

Source from the content-addressed store, hash-verified

179 * @returns A set of providers for use with `provideRouter`.
180 */
181export function withInMemoryScrolling(
182 options: InMemoryScrollingOptions = {},
183): InMemoryScrollingFeature {
184 const providers = [
185 {
186 provide: ROUTER_SCROLLER,
187 useFactory: () => new RouterScroller(options),
188 },
189 ];
190 return routerFeature(RouterFeatureKind.InMemoryScrollingFeature, providers);
191}
192
193/**
194 * A type alias for providers returned by `withExperimentalPlatformNavigation` for use with `provideRouter`.

Callers 2

Calls 1

routerFeatureFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…