Routing in ANGULAR 5

0

I hope you can help me with the following:

I have the following code:

this._router.navigate(['./admin']);

I would like to know if there is the possibility of navigating to this route through the behavior of the href attribute, that is, to completely recharge the application.

Any suggestions are welcome. Thanks.

    
asked by Joel Muñoz Moran 01.08.2018 в 07:26
source

1 answer

1

If you want to refresh the url, you can do it in several ways. Window.Location for example

window.location.assign("https://www.google.com")

Obviously instead of google ... you write your route

    
answered by 01.08.2018 / 07:41
source