This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
Consider triggering a digest when assimilating a third party promise #9179
Open
Description
The Promises/A+ promise specification discusses how promises assimilate another promise:
$http.get(...).then(function(result){
return expernalApi(myObj, result.data); // a Parse/jQuery/Q/Native promise API
});
If the externalAPI
call mutates myObj and a watcher exists for it a digest will not run, however it could be beneficial to schedule a digest when the promise itself resolves rather than when the then
is run.
This is not a biggie but could be a nice addition