javascript - How to allow Ember.js load content from a html content field? -


i have view within ember.js , displays content on page , inside field html, script-tags:

<script src="https://gist.github.com/coder/blabla.js"></script> 

but they're not loading content. there way make them load or ember.js prevent them loading?

actually i'm loading them ajax-request, if loaded on pageload have worked. maybe manually trigger them when load?

$("script").trigger("load");  

is possible in ember? or how do it?

i think write script component loads js when loads:

components/load-github.js

export default ember.component.extend({   dosetup: function() {     var component = this;     component.$.getscript("https://gist.github.com/coder/blabla.js");   }.on("didinsertelement") }); 

templates/template.hbs

{{load-github}} 

Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -