Skip to content

Commit 398f024

Browse files
robwormaldvsavkin
authored andcommitted
fix(async): support BehaviorSubjects in async pipe
1 parent 4a17e69 commit 398f024

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/angular2/src/common/pipes/async_pipe.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export class AsyncPipe implements PipeTransform, OnDestroy {
8181
if (isPresent(obj)) {
8282
this._subscribe(obj);
8383
}
84-
return null;
84+
return this._latestValue;
8585
}
8686

8787
if (obj !== this._obj) {

0 commit comments

Comments
 (0)