I am novice to ember.js, This is how I have included my external java script file to ember project to call to jquery plugin in imagerotator.js
<script src="assets/imagerotator/html/js/imagerotator.js"></script>
when I am calling it from the document.ready() function it getting initialized properly.
But I need that plugin should be only in only one hadlerbar(.hbs) file. Am I doing it correctly ?
I heard there is a "didInsertElement" function in components file and define there but in my case I don't have component just have template file only.
I am novice to emberjs and sorry for my poor English.
Aucun commentaire:
Enregistrer un commentaire