• Genel Bakış
@angular/router

Enables resources capabilities for Route definitions.

API

@returnsRouterResourcesFeature

A set of providers for use with provideRouter.

Usage Notes

Basic example of how you can enable the feature:

const appRoutes: Routes = [];
bootstrapApplication(AppComponent,
  {
    providers: [
      provideRouter(appRoutes, withRouterResources())
    ]
  }
);
Detaylara atla