change url without reloading page angular 2 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');