I am having some trouble with composite objects that get passed to and from 
Web Applications using AngularJS and C# for my REST WEB API back end.  By 
composite objects I mean objects nested as properties in objects.

For example :

Order
Order.OrderLineItem
Order.Customer

Where Order, OrderLineItem, and Customer are all objects.

I am just writing to find out if there are any specific idiosyncrasies 
regarding instantiating an object with nested objects.

What I am noticing primarily is the following helps eliminate problems

1. Create additional accessor properties in parent class.
2. Make all property accessors public

These things for example help to ensure passing objects back and forth via 
REST API remain intact and accessible.

I am just wondering if I am going about this the right way.  Most examples 
on the www only show samples of passing primitives back and forth which I 
don't think in the real world is all that effective.

Your comments are welcome.

Have a great day.

w

-- 
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.

Reply via email to