I’m using ember-cli and I added a library through bower/broccoli.
I can use this library in my templates just like this:
<script>
new LibraryObject().doStuff();
</script>
I used didInsertElement():
Ember.View.extend({
didInsertElement: function () {
new LibraryObject().doStuff();
}
})
It didn’t work, I keep getting not defined errors. So any ideas?