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

Function withInMemoryScrolling

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

Source from the content-addressed store, hash-verified

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

Callers 3

Calls 1

routerFeatureFunction · 0.85

Tested by

no test coverage detected