Search code examples
angularhttpclient

angular16: operate data before return it


enter image description here angular16 httpclient

How could I format the data before returning it? This has been confusing me.

I tried to use "subscribe" "map" but it did not working.

Or am I doing wrong? what should I do if I want to put the data that from a server into a component?

I expect a lifesaver.


Solution

  • you need to pipe(map(...)), not to subscribe.