• 개요
@angular/router

withDisabledInitialNavigation

함수
안정화

Disables initial navigation.

API

@returnsDisabledInitialNavigationFeature

A set of providers for use with provideRouter.

설명

Disables initial navigation.

Use if there is a reason to have more control over when the router starts its initial navigation due to some complex initialization logic.

사용 시 참고사항

Basic example of how you can disable initial navigation:

const appRoutes: Routes = [];
bootstrapApplication(AppComponent,
  {
    providers: [
      provideRouter(appRoutes, withDisabledInitialNavigation())
    ]
  }
);
상세 내용으로 이동