I am attempting to pass parameters to another page using the following method:
const navParams:NavigationExtras = {state: {functionalityId:'my id'}};
this.router.navigate(['processes'], navParams);
Unfortunately, I encounter this error message:
Type '{ state: { functionalityId: string; }; }' is not assignable to type 'NavigationExtras'.
Object literal may only specify known properties, and 'state' does not exist in type 'NavigationExtras'.
I also tried passing parameters directly within the navigate function:
this.router.navigate(['processes'], {functionalityId:'my id'});
However, I face a similar error:
Argument of type '{ functionalityId: string; }' is not assignable to parameter of type 'NavigationExtras'.
Object literal may only specify known properties, and 'functionalityId' does not exist in type 'NavigationExtras'