re: Consuming APIs in Angular – The Model-Adapter Pattern VIEW POST

VIEW PARENT COMMENT VIEW FULL DISCUSSION
 

It's a very clever alternative implementation of this pattern. I like how this approach binds the adaptation code to the model class. Also saves an import statement, and the DI boilerplate. :-) I'd definitely try this out in my next Angular projects!

 

Indeed. Map statement reads really nicely. 👌

code of conduct - report abuse