GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Docs
  • Tutorials
  • Playground
  • Reference
  • code
  • provideRouter
  • Router configuration options

This view

  • Original page
  • New address

GeezerVison is showing next.angular.dev — withRouterConfig • Angular

API

function withRouterConfig(
  options: RouterConfigOptions,
): RouterConfigurationFeature;
@paramoptionsRouterConfigOptions

A set of parameters to configure Router, see RouterConfigOptions for additional information.

@returnsRouterConfigurationFeature

A set of providers for use with provideRouter.

Usage Notes

Basic example of how you can provide extra configuration options:

const appRoutes: Routes = [];
bootstrapApplication(AppComponent,
  {
    providers: [
      provideRouter(appRoutes, withRouterConfig({
         onSameUrlNavigation: 'reload'
      }))
    ]
  }
);
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.