[AngularJS] Re: Do I need to create classes for all the models I am using from the backend?

2016-10-18 Thread Sally LOve
*https://www.youtube.com/watch?v=Al9bmstjUjc* On Monday, October 17, 2016 at 7:21:41 PM UTC+2, Asger Johansen wrote: > > > Hi everybody, > > Just getting started with angular and typescript. > > The app I am building has started getting more complex, also on the > backend. > > Until now, I have

[AngularJS] Re: Do I need to create classes for all the models I am using from the backend?

2016-10-17 Thread Sander Elias
Hi Asger, Depends a bit on your take on what a model actually is. My experience learns me that a model is usually just the name tagged on a JSON object holding the data. In a few cases, the validation is part of the model. Also, the validation rules are shared among most models. For a project,