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

Function routerFeature

packages/router/src/provide_router.ts:143–148  ·  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

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

Callers 14

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

Calls

no outgoing calls

Tested by

no test coverage detected