Permalink
Browse files

Step 15.7: Get the party reactively

  • Loading branch information...
1 parent f894f7d commit dabcc7cabafb220f0d06993a88403151db01a30e @dotansimha dotansimha committed with DAB0mB Sep 27, 2016
Showing with 3 additions and 1 deletion.
  1. +3 −1 client/imports/app/parties/party-details.component.ts
@@ -41,7 +41,9 @@ export class PartyDetailsComponent implements OnInit, OnDestroy {
}
this.partySub = MeteorObservable.subscribe('party', this.partyId).subscribe(() => {
- this.party = Parties.findOne(this.partyId);
+ MeteorObservable.autorun().subscribe(() => {
+ this.party = Parties.findOne(this.partyId);
+ });
});
if (this.uninvitedSub) {

0 comments on commit dabcc7c

Please sign in to comment.