I have a performance dilemma when using new Angular with Typescript. If I use Typescript and I want to have a model.
When I get data (list of objects) from the backend I should apparently instantiate objects based on data I get from the server. This means I would have to iterate through data and instantiate an object with the constructor. To me, that would be much slower than just storing the response in the array. Because, then again in the template, I'm using ngFor to iterate through them. If I use typescript approach I would have two iterations through it. Am I talking sense here and why should I instantiate objects to store them in the array? -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" 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 https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
