That's pretty clever, thanks. However, some of the calls specifically set cache:false (i.e. authorization calls) which would mean the cache factory wouldn't even be notified right? I'd have to set it to true for those calls when the switch is filpped I guess.
Also, is this *the best* way of doing this? There's no way to write a request interceptor that just responds with some data without making the call? Thank you. -- 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.
