MeteorJs : How to making operations when the template is on or after render ?

Use : Template.MyNameTample.onRendered

Example :

Template.PaymentResult.onRendered(function() {
    var instance =  Template.instance();
    instance.autorun(function() {

Here in this code I’m using FlowRouter

You can too use :

Use : Template.MyNameTemplate.rendered

Template.SessionEvent.rendered = function(){

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s