Skip to content
Permalink
Browse files

Step 7.18: Subscribe to 'users'

  • Loading branch information...
dotansimha authored and DAB0mB committed Nov 3, 2016
1 parent 2d4c777 commit 984f6e8a37d49826c7717bb6ce0c85207f698d2a
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/pages/new-chat/new-chat.ts
@@ -21,8 +21,10 @@ export class NewChatComponent implements OnInit {
}

ngOnInit() {
MeteorObservable.autorun().zone().subscribe(() => {
this.users = this.findUsers().zone();
MeteorObservable.subscribe('users').subscribe(() => {
MeteorObservable.autorun().subscribe(() => {
this.users = this.findUsers().zone();
});
});
}

0 comments on commit 984f6e8

Please sign in to comment.
You can’t perform that action at this time.