DEV Community

Discussion on: Consuming APIs in Angular – The Model-Adapter Pattern

 
florimondmanca profile image
Florimond Manca

Cool! Glad to hear simple type conversions work.

To my knowledge there is no Date type in JSON, though, so that still means the model-adapter pattern is needed in more complex use cases.

Thread Thread
 
amineamami profile image
amineamami

In typescript/JavaScript there is obviously, you’ll access it like a normal property Obj.dateProperty