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

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -