I'm a bit of old school - I always try to minimize anything that appears 'expensive' and in computer terms, that means avoiding too many operations where I would be waiting for responses from a remote system.
So when I started with using angular, I started a pattern of packaging up multiple requests for data into a single array, POSTing that and in my back-end script I fulfill each request, package up the results and send whole the package back at once. This works great. When my script loads it only sends one POST and expects only one response. I'm not directly using promises. But I suspect this is an anti-pattern as far as angular is concerned. I'm probably running design limitations. So, if I lose the packaging mechanism and simply request the data items individually as I need them, cache data appropriately in a model, and start to use promises can you tell me if this is how the app is supposed to be designed? Is this how you do it? -- 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.
