角度コンポーネントのテンプレート[report.template.html]の中にscriptタグがあり、ロード時に実行されていません。AngularJs 1.6 tempalteUrl内のコンポーネントスクリプトが実行されていません
<script >
$(document).ready(function() {
console.log("calling showHide");
});
</script>
注:以下plunkr
https://plnkr.co/edit/u8XGlVlY9Q5DmKmPOQwA?p=preview
に示したように、私は、単純な何かが欠けする必要があります知っているangularjs libの前にjqueryのlibがロードされました。誰かが私が間違ってやっているところで助けてもらえますか?
[実行する必要があるスクリプトとHTMLの挿入]の可能性のある重複のようなjQueryの機能の
angular.element(document).ready()
方法の使用、あなたが探して何本ですが、 (http://stackoverflow.com/questions/13711735/insert-html-with-scripts-that-should-run) –