Does Angular support deserialization of polymorphic data from REST API? Say my model looks like the following:
class MyData { animal: Animal; } class Animal { // ... } class Dog extends Animal { // ... } class Cat extends Animal { // ... } Is it possible to automatically populate the MyData.animal property with the correct concrete class object (Dog/Cat) according to the JSON received in the response from the backend side? If yes, is there any special code to include? If not, what is the alternative to support receiving such data on the front end side? -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop receiving emails from it, send an email to angular+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.