jeudi 15 octobre 2015

How to inject 3rd party javascript in Ember.js template?

I'm trying to utilize two 3rd party widgets on a website however cannot quite figure out how to get Ember.js to cooperate. I found lots on Views and have found that they're deprecated now and Components seem the way to go however I'm not sure how to make this work...

I have various city-based templates that require:

<script type="text/javascript" src="http://ift.tt/1GgVZiW"></script>

and one other that looks like this:

<script>document.write('<script src="... + Math.random() + ..."></script>');</script> 

How would I do this with Components or a better alternative!?




Aucun commentaire:

Enregistrer un commentaire