Created
January 17, 2016 07:33
-
-
Save varavut/af3bf6c4c966c7b452e6 to your computer and use it in GitHub Desktop.
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 characters
if (Meteor.isClient) { | |
Samples = new Mongo.Collection('samples'); | |
Template.hello.onCreated(function () { | |
var self = this; | |
self.autorun(function () { | |
self.subscribe('REST2DDP', 'sample'); | |
}); | |
}); | |
Template.hello.helpers({ | |
samples: function () { | |
return Samples.find(); | |
} | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment