I know meteor exposes events such as “click”, for DOM element but I’m wondering if there’s a load event that’s fired when a template or partial is loaded? How would I accomplish this?
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
For Meteor starting from 0.4.0 preview, you can use
Template.myTemplate.created.In
Template.myTemplate.createdthe DOM is not ready however.If you need to manipulate the DOM, you might want to use
Template.myTemplate.renderedinstead and use a boolean value to track the state within the Template object like this: