Isaac Strack
Design Technologist and all-around mediocre soccer player.
ObserveHandler(dataset){
_.each(dataset, function(e){
var elem = $('#elid-'+e.id);
if (elem)
{
elem.text(e.text);
}
else{
$('#elements').append(...)
}
// OH CRAP! I forgot about deletes...
});
} {{#each elems}}
{{text}}
{{/each} Deps.autorun(function () { Meteor.subscribe("counts-by-room", Session.get("roomId"));//or....return Session.get('somevalue'); });
Still observing
No longer being imperative / functional
By Isaac Strack
Quick walkthrough of reactivity in Meteor
Design Technologist and all-around mediocre soccer player.