I have an object:
let paramsObj = {
mode: "resetPassword",
oobCode: "dsaSdsxSFXx",
apiKey: "OQPzWYkFNe",
lang: "en"
}
I want to use this object as queryParams for router navigate:
this.router.navigate(['/action', { queryParams: paramsObj}]);
But this is doesn't work. What is the correct way to do this?