• Overview
@angular/router

withExperimentalPlatformNavigation

function

Enables interop with the browser's Navigation API for router navigations.

API

function withExperimentalPlatformNavigation(): ExperimentalPlatformNavigationFeature;

withExperimentalPlatformNavigation

ExperimentalPlatformNavigationFeature

Enables interop with the browser's Navigation API for router navigations.

@returnsExperimentalPlatformNavigationFeature
Usage notes
const appRoutes: Routes = [  { path: 'page', component: PageComponent },];bootstrapApplication(AppComponent, {  providers: [    provideRouter(appRoutes, withExperimentalPlatformNavigation())  ]});

Usage Notes

const appRoutes: Routes = [  { path: 'page', component: PageComponent },];bootstrapApplication(AppComponent, {  providers: [    provideRouter(appRoutes, withExperimentalPlatformNavigation())  ]});
Jump to details