Last active
          December 31, 2015 22:39 
        
      - 
      
- 
        Save sergeyt/8054865 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
    
  
  
    
  | if (Meteor.isServer){ | |
| Meteor.methods({ | |
| emails: function(){ | |
| return ['[email protected]']; | |
| } | |
| }); | |
| } | |
| if (Meteor.isClient){ | |
| Template.demo.emails = function() { | |
| Meteor.call('emails', function(err, res){ | |
| Session.set('emails', res); | |
| }); | |
| return Session.get('emails') || []; | |
| }; | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment