Instance from external library


I’m using ember-cli and I added a library through bower/broccoli.

I can use this library in my templates just like this:

    new LibraryObject().doStuff();

I used didInsertElement():

    didInsertElement: function () {
        new LibraryObject().doStuff();

It didn’t work, I keep getting not defined errors. So any ideas?


Hi , this blog may be helpful

I’m a new user, so I’m not sure if this is the right way. It solved my problem though.