Skip to content

NestedModel

Michael Dostál edited this page Nov 14, 2018 · 1 revision

Nested model should be used for complex attributes.

For example Address:

{
 street:'Bakerstreet 221b'
 city: 'London',
 zip: 'W6 7EB',
 country:'Great Britain'
}
export class Address extends JsonApiNestedModel { }

NOTE: Change of any field inside NestedModel will result in marking the whole NestedModel as dirty.

Attribute decorators

  • @JsonAttribute
Clone this wiki locally