meteor - Why Router.go doesn't works on observe callback -
i have template :
template.playdetails.created = function () { /* catch removed documents , redirect client if happens */ games.find({_id: gameid}).observe({ removed: function () { console.log("ooops game deleted !"); alerts("the game deleted owner", "danger"); router.go("playlist"); } }); };
and when delete game log shown on console neither alerts or router.go works.
i tried call router.go time out didn't change anythings
meteor.settimeout(function(){ router.go('playlist'); }, 10);
is there didn't ?
Comments
Post a Comment