Originally published at EmberScreencasts.com on Sep 21, 2016. https://www.emberscreencasts.com/post...
Writing Ember code and using Ember addons is great... but what if you need something from outside the Ember world?
There are challenges, but here are my 3 biggest tips:
Isolate in a component or service
Pull in library with ember-inject-script
Don't feel bad about using the library's (non-Ember) paradigms, as long as it stays isolated
UPDATE: code has since been updated, adding an else statement to the init function that also calls updateVideo. This helps it better deal with multiple uses of the components on one page. Jakub Olek has some great thoughts on that in the comments section below.
Links:
ember-inject-script - https://github.com/minutebase/ember-i...
Want to learn Ember 2? Go to https://www.emberschool.com