How pass parameters from two url without show them in the url

Viewed 1830

I need to pass parameters from URLA o urlB whithout and the urlB must be show ( so I can't use skiplocation=true).

in my ts I do ( in URLA) :

this.router.navigate([URLB], {
                queryParams:
                {
                    name: "erika"

                }
            });

and when I take the parameter I do:

 this.activatedRoute.queryParams.subscribe(params => {
      this.name = params['name'];

    });

The problem is that it shows me url in this way URLB?name=erika and I don't want to do this, but i want the it show me URLB and pass me hidden parameter. Anyone can help me?

1 Answers
Related