dimanche 12 avril 2015

Angularjs. Send variable inside html template in tag


Vote count:

0




I've this widget code inside directive html template.



<script type="text/javascript">
_hcwp = window._hcwp || [];
_hcwp.push({widget:"Stream", widget_id:10862, xid:{{_id}});
(function() {
if("HC_LOAD_INIT" in window)return;
HC_LOAD_INIT = true;
var lang = (navigator.language || navigator.systemLanguage || navigator.userLanguage || "en").substr(0, 2).toLowerCase();
var hcc = document.createElement("script"); hcc.type = "text/javascript"; hcc.async = true;
hcc.src = ("https:" == document.location.protocol ? "https" : "http")+"://w.hypercomments.com/widget/hc/10862/"+lang+"/widget.js";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hcc, s.nextSibling);
})();


Inside this template have a variable {{_id}}.


But when angular render this template, variable is not sent inside template.


At some point have to send a variable inside temple for render?



asked 8 secs ago







Angularjs. Send variable inside html template in tag

Aucun commentaire:

Enregistrer un commentaire