So, I know that if I make a collection. Address (), it is really reactive and when there is new data in the collection
Like I do something like this:
Template.test.helpers ({test: function () {MyCollection.find ({});}});
So, I know that part of my {{test}} in HTML will be updated properly.
But I have to parse that data on the customer side.
Is there anything that can be:
function () {MyCollection.find ({}, function (result) {// it's each Is executed, this is the new data // Do some stuff with the results session. Set ("mySessionVar", newResultData);}); }
And then, keep the session .get ("mySessionVar") in some support functions.
No comments:
Post a Comment