MCPcopy
hub / github.com/angular/angular / routerFeature

Function routerFeature

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

137 * Helper function to create an object that represents a Router feature.
138 */
139function routerFeature<FeatureKind extends RouterFeatureKind>(
140 kind: FeatureKind,
141 providers: Array<Provider | EnvironmentProviders>,
142): RouterFeature<FeatureKind> {
143 return {ɵkind: kind, ɵproviders: providers};
144}
145
146/**
147 * 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…