(
options: InMemoryScrollingOptions = {},
)
| 179 | * @returns A set of providers for use with `provideRouter`. |
| 180 | */ |
| 181 | export 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`. |
no test coverage detected
searching dependent graphs…