diff options
| author | Igor Minar | 2011-11-23 15:53:06 -0800 |
|---|---|---|
| committer | Igor Minar | 2011-11-30 14:49:35 -0500 |
| commit | 78b6e8a446c0e38075c14b724f3cdf345c01fa06 (patch) | |
| tree | c7d8c217cc257774c5eb9adcc0e0482c1a2ddc9c /src/Resource.js | |
| parent | b656552d68c7116ee5f7b7c217de6ce116fb3448 (diff) | |
| download | angular.js-78b6e8a446c0e38075c14b724f3cdf345c01fa06.tar.bz2 | |
feat($parse): add support for transparent evaluation of Promises
Parser now builds expressions that can detect promises and transparently
evaluate them to undefined or the promise value.
If promiseA is resolved with value 'A', then {{promiseA}} evals to 'A';
If promiseA is unresolved, then {{promiseA}} evals to undefined;
Following invocations are supported:
- {{promise}}
- {{promise.futureProp}}
- {{[promise][0]}}
- {{object.promise}}
- {{object[promise]}}
- {{array[promise]}}
- {{fn(promise)}}
- combinations of the above
Diffstat (limited to 'src/Resource.js')
0 files changed, 0 insertions, 0 deletions
