Skip to content

Instantly share code, notes, and snippets.

@luisarroyo
Last active October 22, 2015 07:50
Show Gist options
  • Select an option

  • Save luisarroyo/39a03a580cdefc67d985 to your computer and use it in GitHub Desktop.

Select an option

Save luisarroyo/39a03a580cdefc67d985 to your computer and use it in GitHub Desktop.
meteor-typhead multiple datasets example
Template.demo.teams = function(){
return [
{
name: 'nba-teams',
valueKey: 'name',
displayKey: 'name',
local: function() { return Nba.find().fetch() },
header: '<h3 class="league-name">NBA Teams</h3>'
},
{
name: 'nhl-teams',
valueKey: 'name',
displayKey: 'name',
local: function() { return Nhl.find().fetch() },
header: '<h3 class="league-name">NHL Teams</h3>'
}
];
};
@JayMc
Copy link

JayMc commented Oct 22, 2015

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment