Skip to content

Commit

Permalink
Step 12.12: Add the Count usage in the component
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamil Kisiela authored and Dotan Simha committed Nov 22, 2016
1 parent 7da08b9 commit 2f13ef2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions imports/ui/components/partiesList/partiesList.js
Expand Up @@ -3,6 +3,8 @@ import angularMeteor from 'angular-meteor';
import uiRouter from 'angular-ui-router';
import utilsPagination from 'angular-utils-pagination';

import { Counts } from 'meteor/tmeasday:publish-counts';

import template from './partiesList.html';
import { Parties } from '../../../api/parties';
import { name as PartyAdd } from '../partyAdd/partyAdd';
Expand Down Expand Up @@ -31,6 +33,9 @@ class PartiesList {
return Parties.find({}, {
sort : this.getReactively('sort')
});
},
partiesCount() {
return Counts.get('numberOfParties');
}
});
}
Expand Down

0 comments on commit 2f13ef2

Please sign in to comment.