Skip to content

Instantly share code, notes, and snippets.

@wbashir
Created March 30, 2014 18:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wbashir/9877344 to your computer and use it in GitHub Desktop.
Save wbashir/9877344 to your computer and use it in GitHub Desktop.
Rendered Call Back - Meteor initializing JQuery plugins
<template name="t1">
<select id="selector"></select>
</template>
Tempalate['t1'].rendered = function(){
//attach to a DOM element with JQuery plugin
$('#selector').someJQueryPluginIn({}); //initializing
}
@johngerome
Copy link

i got
Uncaught ReferenceError: Tempalate is not defined
any idea why ?

@asidiali
Copy link

asidiali commented Aug 4, 2015

Template

You have an extra "a" in there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment