They both seem to go to this webpage and quote @matt's answer:
navigate().to() and get() do the same.
Single page applications are an exception to this.
The difference between the two methods does not come from their behavior, but from their behavior in how the application works and how the browser handles it.
navigate().to() moves to the page, changing the URL like moving forward / backward.
Whereas get() refreshes the page until the URL changes.
So, in cases where the application domain changes, both methods behave in a similar way. That is, the page is refreshed in both cases. But in single-page applications, while navigate().to() does not refresh the page, get() do.
Also, this is the reason why browser history is lost when using get() due to an application update.
Originally answered: stack overflow.site/questions/103132 / ...
Manu Nov 23 '15 at 10:46 2015-11-23 10:46
source share