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