-
Notifications
You must be signed in to change notification settings - Fork 27.4k
$http promises resolving changed in 1.1.4 #2371
Comments
Maybe this is intentional, so you would be able to collect your requests, and fire them all at once. But since |
+1 for posting this issue. This issue cost me alot of troubles. |
+1. Causing me issues also with functions being fired by directives and http.get not being called automatically. |
+1 same here. I didn't see anything about this listed in the breaking changes either, so it feels like a bug. |
+1, and the issue (at least in my case) is that the request is not even fired to the server prior to the next digest cycle. Tests fine in 1.1.3 and 1.0.6. |
It's not just that the scope isn't updated, This issue hasn't been fixed in version 1.1.5. |
+1 breaking tons of stuff, definitely breakage from previous versions, intentional or not. Is this being worked on, or is it intentional? |
@valentinkostadinov , see #2431, which was replied to by the Angular team yesterday. Seems intentional - or rather, a known byproduct of design changes. However, the ramifications of these changes are not documented, AFAICT, in the latest code drop. |
As part of our effort to clean out old issues, this issue is being automatically closed since it has been inactivite for over two months. Please try the newest versions of Angular ( Thanks! |
The following code works successfully in 1.1.3 (and earlier) but does not work in 1.1.4. It does work in 1.1.4 if you replace
setTimeout
with$timeout
or wrap$http.get()
into$scope.apply()
. Otherwise promise is not resolved until nearest digest cycle. Yes, in general,$q
promises resolving is propagated to the nearest digest cycle. But the code below does work in 1.1.3 and docs state that$http
callbacks should automatically be wrapped into$apply()
.So the question is: where is the correct behavior, 1.1.3 or 1.1.4?
Is it bug introduced in 1.1.4 of bugfix and now the behavior is correct?
The text was updated successfully, but these errors were encountered: