#map not working

4 messages · Page 1 of 1 (latest)

copper hamlet
#

I am trying to get start with angular http client and found this tutorial
I then followed along and used the map method as shown in the turorial and my code here
Only to get the following error. Can anyone please point me how to fix it ?

karmic gate
#

Btw, that course probably has not been updated correctly in the last years, because it's been a while now since RxJs moved the FunctionOperator as arguments of the .pipe function, instead that as property of the Observable object itself.
That's why I suggest to stick with official docs.

loud gyroBOT
#

Hi @copper hamlet, please do not post pictures/screenshots of code (especially photos of a physical screen). Screenshots are more difficult to read compared to code in a codeblock, and they do not allow people answering to quickly copy and adjust your code to provide you with an answer.

For copy/pasting code in a discord post, you can use the following snippet to have your code placed in a codeblock with syntax highlighting. Replace ts with the language you are copying (i.e. html, js, css, etc)

```ts
// your code goes here
```

See #how-to-get-help for more tips on how to ask code related questions in this server.