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

Function withInMemoryScrolling

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

Source from the content-addressed store, hash-verified

180 * @returns A set of providers for use with `provideRouter`.
181 */
182export function withInMemoryScrolling(
183 options: InMemoryScrollingOptions = {},
184): InMemoryScrollingFeature {
185 const providers = [
186 {
187 provide: ROUTER_SCROLLER,
188 useFactory: () => new RouterScroller(options),
189 },
190 ];
191 return routerFeature(RouterFeatureKind.InMemoryScrollingFeature, providers);
192}
193
194/**
195 * 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