I perform my searching from the navbar component at the top of the page. I can route to my 'member' component page when entering the search criteria from the navbar, but once I'm on the 'member' component and I change the query params and try to run the router.navigate() again I can't get Angular to hit my resolver.
here is what I do and what I tried above the navigate call, neither shouldReuseRoute or onSameUrlNavigation seem to work to hit my resolver again once on the component.
Question is - should it? Because maybe I have something else wrong somewhere!
// tried with no luck
this.router.routeReuseStrategy.shouldReuseRoute = () => false;
// tried with no luck
this.router.onSameUrlNavigation = 'reload';
this.router.navigate(['/members'], {
queryParams: {
latitude: this.locationLatitude,
longitude: this.locationLongitude,
gender: this.gender,
minAge: this.ageFrom,
maxAge: this.ageTo,
orderBy: this.orderBy
}
});