Permalink
Browse files

Step 9.18: Subscribe to chats

  • Loading branch information...
dotansimha authored and darkbasic committed Jan 24, 2017
1 parent 6c8162c commit 53d58987083fdd95d26297b66b63997395e3ce5c
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/pages/chats/chats.ts
View
@@ -29,7 +29,11 @@ export class ChatsPage implements OnInit {
}
ngOnInit() {
this.chats = this.findChats();
MeteorObservable.subscribe('chats').subscribe(() => {
MeteorObservable.autorun().subscribe(() => {
this.chats = this.findChats();
});
});
}
findChats(): Observable<Chat[]> {

0 comments on commit 53d5898

Please sign in to comment.