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

Function routerFeature

packages/router/src/provide_router.ts:140–145  ·  view source on GitHub ↗

* Helper function to create an object that represents a Router feature.

(
  kind: FeatureKind,
  providers: Array<Provider | EnvironmentProviders>,
)

Source from the content-addressed store, hash-verified

138 * Helper function to create an object that represents a Router feature.
139 */
140function routerFeature<FeatureKind extends RouterFeatureKind>(
141 kind: FeatureKind,
142 providers: Array<Provider | EnvironmentProviders>,
143): RouterFeature<FeatureKind> {
144 return {ɵkind: kind, ɵproviders: providers};
145}
146
147/**
148 * A type alias for providers returned by `withInMemoryScrolling` for use with `provideRouter`.

Callers 13

withInMemoryScrollingFunction · 0.85
withDebugTracingFunction · 0.85
withPreloadingFunction · 0.85
withRouterConfigFunction · 0.85
withHashLocationFunction · 0.85
withViewTransitionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected