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
Post a Comment