hello,
in my application there is a rest api which gets a product object.
{
"Product": {
"productId": 181124961,
"erpNumber": "1231124",
"price": 34.99
}
}
My question is now is it ok to extend this model like so, or is it better
to create an additional layer for that (wrapper viewmodel):
{
"Product": {
"productId": 181124961,
"erpNumber": "1231124",
"price": 34.99,
"_chosenOptions": {124214, 1241241}, // own properties marked with
"_"
"_selectedQuantity": 1
}
}
best regards,
jens
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.