Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4828

Loading external JS assets in the application

$
0
0

@leonardo wrote:

Hello everyone

I've been using the vendor/vendor-load.js file to load local external dependencies but what about external ones?

I need to inject the Wistia JS file than one way that works is adding the file in application controller, something like:

export default Ember.Controller.extend({
  init() {
    Ember.$.getScript('//fast.wistia.com/assets/external/E-v1.js')
  }
}

Is there an Ember way for this or this is how do you usually do?

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4828

Trending Articles