Last active
December 31, 2015 22:39
-
-
Save sergeyt/8054591 to your computer and use it in GitHub Desktop.
gist for meteor-typeahead demo
This file contains 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
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