You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
I want to suggest automatically resolve promises inside ng-repeat, ng-bind and other directives with the same behavior.
Now I have to write something in this way:
This used to be the case early on with Angular (something called Promise unwrapping), but it lead to a lot of issues. There's a full description here as to why it was removed: #4317
This used to work as you are proposing and was removed later on as it was causing all sort of confusion and corner cases (ex.: what to do when a promise fails?). I don't think we want to go back on this one.
@nkt as @pkozlowski-opensource stated before, this was the original behavior in Angular 1.0, this behavior caused too many issue and side-effects that developers were not expecting. The current behavior is simpler to understand and works better. You just have to do
I want to suggest automatically resolve promises inside
ng-repeat
,ng-bind
and other directives with the same behavior.Now I have to write something in this way:
It would be better to replace this with:
The text was updated successfully, but these errors were encountered: