meteor - Iron-Router Does NOT Render Template A Second Time For Data Change Context in same Route -


i have route using iron-router described below:

//// preview route router.route('/preview/:_id', {   template:'preview',   subscriptions: function() {       return meteor.subscribe('files', 'preview', currentincident()); }, data: function () {     return files.findone(this.params._id); }, action: function () {     if (this.ready()) {         this.render();     } else {         this.render("loading");     } }, onafteraction: function() {     // start resetting scroll top of page     $(window).scrolltop(0);  } 

});

the template.preview.rendered gets called when come different route, i.e /home. if use router.go("/preview/someid") /preview/differentid template.preview.rendered not called. there way around problem?


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -