angular change route param without reload code example
Example 1: how to navigate without realoding angular
import { Location } from '@angular/common';
constructor(private location: Location) { }
this.location.replaceState('/profile');
Example 2: angular reload component on route param change
constructor(private router: Router) {
this.router.routeReuseStrategy.shouldReuseRoute = function() {
return false;
};
}