How to go back last page

Discussão em 'Angular' iniciado por Hongbo Miao, Abril 19, 2025.

  1. Hongbo Miao

    Hongbo Miao Guest

    Is there a smart way to go back last page in Angular 2?

    Something like

    this._router.navigate(LASTPAGE);


    For example, page C has a Go Back button,


    • Page A -> Page C, click it, back to page A.


    • Page B -> Page C, click it, back to page B.

    Does router have this history information?

    Continue reading...

Compartilhe esta Página