-1

I have a C# ASP.NET server that returns Animals objects list to my angular 8 project, Is it possible to set more fields in the Animal class on the client side- angular?

Hope you understand me, Thanks for your answer!

1
  • 1
    Yes, it possible Commented Feb 3, 2021 at 10:15

1 Answer 1

0

Here is an example (assume everything is working at this point):

this.http.get<Animal[]>(....).pipe(
  flatMap(items => items),
  map(item => ...your mapping function here...)
);

See also more examples from this question

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.