withRouterConfig
함수
안정화
Allows to provide extra parameters to configure Router.
@paramoptions
RouterConfigOptionsA set of parameters to configure Router, see RouterConfigOptions for
additional information.
사용 시 참고사항
Basic example of how you can provide extra configuration options:
const appRoutes: Routes = [];
bootstrapApplication(AppComponent,
{
providers: [
provideRouter(appRoutes, withRouterConfig({
onSameUrlNavigation: 'reload'
}))
]
}
);
상세 내용으로 이동