I'm using PhpStorm to develop an Angular app and I have an "unresolved variable" error at
params.myid
Here is the code line:
this.route.params.subscribe((params: Params) => {
const avalancheid = params.myid;
});
There is no error if I change the type to "any" instead of "Params"
this.route.params.subscribe((params: any) => {
const avalancheid = params.myid;
});
Angular version: 4.2.4, PhpStorm version: 2017.2.4