Robię restcountries api :
https://stackblitz.com/edit/angular-ivy-4cmvjv?file=README.md
To zrobiłam na stackblitz teraz robię w visualu. Mam problem z parammap.
Error: app/pages/country-details/country-details.component.ts:22:18 - error TS7052: Element implicitly has an 'any' type because type 'ParamMap' has no index signature. Did you mean to call 'get'?
22 let name = this.route.snapshot.paramMap['params']['name'];
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error TS7052: Element implicitly has an 'any' type because type 'ParamMap' has no index signature. Did you mean to call 'get'?
21 if (this.route.snapshot.paramMap['params']['name']) {
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Przejrzzałam cały kod po sto razy, wygląda tak samo (na 99% bo moe cos mi umknelo) więc skąd ten błąd ?