Hi William,

Not really an angular question ;)
You are in JavaScript world now, and you don't need to instantiate 
anything. Do yourself a favor and do not try to mimic the java/c# style of 
writing code in JS. This will only make things way more complex then they 
need to be. JS is powerful enough to let you do this tough.
The most maintainable way of writing this kind of solutions is to detach 
your data from the business logic. Create a pure data object, and create 
the logic you need separate form that. In another object if you like that. 
Oh, by a pure data object I mean something that you can serialize to/from 
JSON without any extra processing. (euh, perhaps just pre/post process 
dates) 

Regards]
Sander

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