matteodem / meteor-easy-search

Easy-to-use search for Meteor with Blaze Components
MIT License
438 stars 68 forks source link

How do I simply return the results? #525

Closed Tzikas closed 7 years ago

Tzikas commented 7 years ago

I have the results populating in the html, and I just want to return the results in javascript. I was able to get the count like this ApartmentsIndex.getComponentDict().get('count') I want the actual document results. I tried ApartmentsIndex.getComponentMethods().getCursor() and I ran into an infinite loop. I know this is a super basic question but any help would be appreciated.

Tzikas commented 7 years ago

Putting this in the helper did it for me ApartmentsIndex.getComponentMethods().getCursor().fetch()