Skip to content

Instantly share code, notes, and snippets.

@sergeyt
Last active December 31, 2015 22:39
Show Gist options
  • Save sergeyt/8054591 to your computer and use it in GitHub Desktop.
Save sergeyt/8054591 to your computer and use it in GitHub Desktop.
gist for meteor-typeahead demo
Nba = new Meteor.Collection("nba");
if (Meteor.isServer){
Nba.insert({name:'Boston Celtics'});
// fill Nba collection
}
Template.demo.nba = function(){
return Nba.find().fetch().map(function(it){ return it.name; });
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment