Skip to content

Instantly share code, notes, and snippets.

@sergeyt
Last active December 31, 2015 22:39
Show Gist options
  • Save sergeyt/8054865 to your computer and use it in GitHub Desktop.
Save sergeyt/8054865 to your computer and use it in GitHub Desktop.
gist for meteor-typeahead demo
if (Meteor.isServer){
Meteor.methods({
emails: function(){
return ['[email protected]'];
}
});
}
if (Meteor.isClient){
Template.demo.emails = function() {
Meteor.call('emails', function(err, res){
Session.set('emails', res);
});
return Session.get('emails') || [];
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment