U
U
Urukhayy2017-11-26 09:25:40
Angular
Urukhayy, 2017-11-26 09:25:40

Angular: Does all incoming data need to be converted to types?

Angular 2+.
For example, a JSON array of objects came from the server. Do they need to create Model.ts to describe the type of each field of the object, and then convert each object from JSON to TypeScript types?
And if data comes from the server that is not in the database, for example, the API provides services for calculating any values. How then to work with TypeScript classes?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question