javascript - How can I add this function in my Meteor project -


i installed type.js package , when type code directly in console works:

$(function(){                   $(".typedelement").typed({                     strings: ["you don't have projects yet", "start adding project."],                     typespeed: 0                   });               }); }); 

however how can add on js file works end client see it?

i try registering template helper , calling helper insdide template returns object, help?

thanks

plugins should initialized in template's onrendered callback. example:

template.mytemplate.onrendered(function() {   $(".typedelement").typed({     strings: ["you don't have projects yet", "start adding project."],     typespeed: 0   }); }); 

Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -