plain objects VS class instances for model objects
问题 What is the best practice for creating model objects in Angular / TypeScript: Should I use type annotation with object notation (objects are plain instances of Object )? E.g. let m: MyModel = { name: 'foo' } Should I use the new operator (objects are instances of the respective prototype)? Should these two approaches be mixed up and used situationally? (E.g plain objects, when receiving a response from the HttpClient , but new MyModel('foobar') for convenience to create instances by passing