Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //global var
- var resultCursor;
- ...
- Template.device.events({
- click .btn-search": function (event) {
- event.preventDefault();
- [...]
- resultsCURSOR = myCollection.find(query, queryOptions);
- })
- Template.device.helpers({
- searchResults: function() {
- return resultCursor;
- }
- })
- {{#each flightSearchResults}}
- <div class="flight-list">
- <p>Pilot: {{this.pilot}}</p>
- <p>Time: {{this.date}}</p>
- </div>
- {{/each}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement