• Overview
@angular/router

withRouterResources

function

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())
    ]
  }
);
Jump to details