I get an html from my api that gets rendered inside my angular template. It contains urls that link to other routes on my app. Example:
http://localhost:4200/some/component?query=somethingelse&foo=bar
# or preferably
/some/component?query=somethingelse&foo=bar
If i click on it, by default it reloads the app while routing.
What i want it is to redirect just route like [routerLink]
does, i.e. without refreshing the page. I tried to add click method, that calls this.route.navigate
, but i have to manually parse the querystrings (or use a library) to make it work.
I was hoping if angular has a better way to do it. If not, any other solution is also appreciated.