7
ng-includeノードをテンプレートに置き換えますか?
ちょっと角度の新しい。ng-includeノードをインクルードされたテンプレートのコンテンツに置き換えることは可能ですか?たとえば、次のようになります。 <div ng-app> <script type="text/ng-template" id="test.html"> <p>Test</p> </script> <div ng-include src="'test.html'"></div> </div> 生成されるhtmlは次のとおりです。 <div ng-app> <script type="text/ng-template" id="test.html"> <p>Test</p> </script> <div ng-include src="'test.html'"> <span class="ng-scope"> </span> <p>Test</p> <span class="ng-scope"> </span> </div> </div> しかし、私が欲しいのは: <div ng-app> <script type="text/ng-template" id="test.html"> <p>Test</p> </script> <p>Test</p> </div>
85
angularjs