Skip to content

Commit

Permalink
Step 21.39: Subscribe to the images publication
Browse files Browse the repository at this point in the history
  • Loading branch information
dotansimha authored and DAB0mB committed Dec 14, 2016
1 parent 609f02b commit 1321eb3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client/imports/app/parties/parties-list.component.ts
Expand Up @@ -41,12 +41,15 @@ export class PartiesListComponent implements OnInit, OnDestroy {
autorunSub: Subscription;
location: Subject<string> = new Subject<string>();
user: Meteor.User;
imagesSubs: Subscription;

constructor(
private paginationService: PaginationService
) {}

ngOnInit() {
this.imagesSubs = MeteorObservable.subscribe('images').subscribe();

this.optionsSub = Observable.combineLatest(
this.pageSize,
this.curPage,
Expand Down Expand Up @@ -117,5 +120,6 @@ export class PartiesListComponent implements OnInit, OnDestroy {
this.partiesSub.unsubscribe();
this.optionsSub.unsubscribe();
this.autorunSub.unsubscribe();
this.imagesSubs.unsubscribe();
}
}

0 comments on commit 1321eb3

Please sign in to comment.