on click of hyperlink am opening employee details in new tab
<a [routerLink]="['/employee','details',{name:employee.empName}]" target="_blank" ></a>
in service am accessing that like below
resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<any> | Promise<any> | any {
this.name = route.params.name;
}
by using above code am able to get employee name but i want to pass complete employee object.
And data is appending to url https://localhost:4200/employee/details;name=xxxx, i dont want to append that in Url .
If i pass employee object by converting to string , am getting data in url but am getting "page can’t be found" because i have some links in that object
https://stackoverflow.com/questions/57567816. See angular.io/tutorial/toh-pt5#add-a-hero-detail-route and angular.io/tutorial/toh-pt5#routable-herodetailcomponent