- 
                Notifications
    You must be signed in to change notification settings 
- Fork 27.3k
Added invokeApply parameter to $http to skip apply #12557
Conversation
| Small FYI, if you just push again to your branch the pull request will updated. No need to create a new one. Is there a reason why  | 
| It's similar to how the $timeout and $interval services, but no other reason. I could change it to use the config object if that's preferable. | 
| This change isn't enough to prevent the digest from happening because resolving a  As a side note, I wonder why the explicit call to  | 
| This looks great and will be a great option to improve performance for those of us still doing http polling. @Utsav2 any chance you can modify the pull request to use  | 
| Can we try to push this in one of the near-future minor releases? / CC @Utsav2 | 
| As @thorn0 mentioned, this is not enough to prevent the  | 
| 
 Correct me if I'm wrong here, but isn't it enough to just swap  | 
| @colinmorelli Actually, the  | 
| I know this is a larger conversation...but that feels backwards to me. If anything is going to be doing  All that said, I'd still like to be able to get this in. Having  | 
| Why do you think  | 
| I think what you said is exactly my point:  But, that said, I definitely don't think that creating and resolving a promise with  I understand why it was done. I think the simplicity of being able to just call  | 
| Changing the behavior of  | 
| +1 I know this is a little off topic, but I noticed that because  Is a digest necessary after templates load?  If not, and the  | 
| Any updates on this? | 
| We feel that this is somewhat of a corner case that is not required for the vast majority of situations. | 
| Oh nuts! What a shame. Well, it's a corner case, except for... probably most non-trivial apps. But I understand the need to rationalise... the resource allocation on Angular 1.x must be asymptoting rapidly to 0. :P | 
There are a bunch of times when we don't want a $rootScope.$apply after an http request succeeds. This stackoverflow question gives a good use case: polling.
We can also use this to do scope specific digests, which really helps performance and snappiness on mobile devices.
It also gives us a little more control over the API, and also makes it similar to $timeout.