我是angular2开发新手。我想在我的footer.component.html(角度2)内添加下面的js行。如何在angular2模板中添加javascript代码段
但是代码没有以角度运行2.有人可以帮忙。
<script type="text/javascript" src="http://feedjit.com/serve/?vv=1515&tft=3&srefs=0"></script>
<noscript><a href="http://feedjit.com/">Live Traffic Stats</a></noscript>
你有没有试过https://angular.io/docs/ts/latest/api/platform-browser/index/DomSanitizer-class.html#!%23bypassSecurityTrustScript-anchor – jonrsharpe
@jonrsharpe:你能否提供这样的示例代码api .. –