I am using Angular 4 and I want to pass some object to router but without updating query params.
user.component.ts
this.router.navigate(["/profile",{
action: 'edit',
user: {id: 1, name: 'test', email: '[email protected]'}
}]);
app-routing.module.ts
{ path: 'profile', component: UserProfileComponent }
user-profile.component.ts
this.route.params.subscribe(params => {
});
Any help?