What is the use of onSameUrlNavigation property in Angular( versions greater than 5)

Discussão em 'Angular' iniciado por ark, Fevereiro 4, 2025.

  1. ark

    ark Guest

    Recently I have heard about a property called onSameUrlNavigation where you can set it to "reload". I have googled about it but there are not many articles which shows the use of that property. Can somebody help me with a real time example of where exactly we need to use that property.

    @ngModule({
    imports: [RouterModule.forRoot(routes, {onSameUrlNavigation: `reload`})],
    exports: [RouterModule],
    })

    Continue reading...

Compartilhe esta Página