Created
August 7, 2014 14:19
-
-
Save paulmolluzzo/6d26569c7881ca8a8731 to your computer and use it in GitHub Desktop.
Revisions
-
paulmolluzzo created this gist
Aug 7, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ this.route('report', { path: '/reports/:_id', template: 'report', data: function () { return { reports:Reports.findOne({_id:this.params._id}) }; }, waitOn: function(){ return subscriptionHandles.singlereport(this.params._id); }, action: function() { if(this.ready() && this.data()) this.render(); } }); This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ subscriptionHandles = { singlereport: function(reportID) { return Meteor.subscribe("singlereport", reportID) } };