Skip to content

Instantly share code, notes, and snippets.

@sergeyt
Last active December 31, 2015 22:39
Show Gist options
  • Save sergeyt/8054660 to your computer and use it in GitHub Desktop.
Save sergeyt/8054660 to your computer and use it in GitHub Desktop.
gist for meteor-typeahead demo
Template.demo.teams = function(){
return [
{
name: 'nba-teams',
local: function() { return Nba.find().fetch().map(function(it){ return it.name; }); },
header: '<h3 class="league-name">NBA Teams</h3>'
},
{
name: 'nhl-teams',
local: function() { return Nhl.find().fetch().map(function(it){ return it.name; }); },
header: '<h3 class="league-name">NHL Teams</h3>'
}
];
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment