Permalink
Browse files

Step 9.18: Subscribe to chats

  • Loading branch information...
dotansimha authored and darkbasic committed Jan 24, 2017
1 parent 58d636b commit 3c57f857977deeb6d3c60df6fcc4e8baaaddedf3
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 3c57f85

Please sign in to comment.