javascript - Unchecking checkbox during live search with Blaze in Meteor JS -


I'm trying to simulate a live search with meteorite JS (BTW, surprisingly hard work!)

This is in client.js :

  Template.newDiagnostic.events ({"keyup .entry-search": function (e) {Session .set ("search query", function (value) {var query = new regExp (session .get ("search-query")) return query.test (value)}} Template. NewDiagnostic.helpers ({symptoms: function (return symptoms.find ({}}}}) Actually, I have an event, I look at the key in search A. Input, next to changing a session variable, I have registered an assistant to check whether a given string match (RegExp) is finally available, to provide data only.  

Then , I have this in my HTML: