angularjs - How to use getReactively with find all helper in Angular Meteor? -


i working through angular meteor tutorial , got deprecation warning on

this.helpers({    parties: () => {       return parties.find({});   //deprecation warning. use getreactively                 } }); 

but not quite sure how records reactively. not have queries return parties.find({field: this.getreactively(query)}). want records/everything similar collection.find({}) or parties.find({}) without deprecation warning.

im use parties: ()=> parties.find() , i'm has no error or deprecated warning. maybe should try it. beside, sometime need handle data fetch query. im used temp variable save data before handle it. can try (some code pseudo code)

parties: () { this.temp = parties.find().fetch(); if(this.temp) { //handle data, adjust property format string, format date.... return this.temp } } work, no deprecated, no error. can try it.


Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -