change url without navigating angular code example
Example: how to navigate without realoding angular
import { Location } from '@angular/common';
constructor(private location: Location) { }
this.location.replaceState('/profile');
import { Location } from '@angular/common';
constructor(private location: Location) { }
this.location.replaceState('/profile');