Advertisement
Guest User

Untitled

a guest
Jul 24th, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. //global var
  2. var resultCursor;
  3. ...
  4.  
  5. Template.device.events({
  6. click .btn-search": function (event) {
  7. event.preventDefault();
  8.  
  9. [...]
  10.  
  11. resultsCURSOR = myCollection.find(query, queryOptions);
  12. })
  13.  
  14. Template.device.helpers({
  15. searchResults: function() {
  16. return resultCursor;
  17. }
  18. })
  19.  
  20. {{#each flightSearchResults}}
  21. <div class="flight-list">
  22. <p>Pilot: {{this.pilot}}</p>
  23. <p>Time: {{this.date}}</p>
  24. </div>
  25. {{/each}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement