I’m trying to get a template.helper to fire when object in an array change, but I am not getting anywhere. I tried with the Reactive Array package, but that only fires when you add or remove elements from the array, so that did not work.
Now I am trying with Tracker.Dependency, but I cannot get the helper to rerun whenever I want. I have this structure for the Dependency:
> Template.frontend.created = () -> > testDep = new Tracker.Dependency > 'click .question': (event, template) -> > # some code :-) > Template.instance().arrQsDep.changed > Template.frontend.helpers > getQuestionsLevel: -> > console.log 'I fire only once!' > Template.instance().arrQsDep.depend > return arrQ
I get no error-messages, but the frontend.helper fires only once… where am I going wrong?
I’ve read all the docs I could find, and as I understand it, it should fire…