fix(async): handle synchronous initial value in async pipe

Closes #5996
This commit is contained in:
Rob Wormald 2015-12-17 20:30:40 -08:00 committed by Alex Eagle
parent c2ceb7fba4
commit 26e60d658a
1 changed files with 1 additions and 0 deletions

View File

@ -81,6 +81,7 @@ export class AsyncPipe implements PipeTransform, OnDestroy {
if (isPresent(obj)) { if (isPresent(obj)) {
this._subscribe(obj); this._subscribe(obj);
} }
this._latestReturnedValue = this._latestValue;
return this._latestValue; return this._latestValue;
} }