कोंडा नया कोणीय। क्या इसमें शामिल टेम्पलेट की सामग्री के साथ एनजी-शामिल नोड को बदलना संभव है ? उदाहरण के लिए, साथ:
<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>
'test.html'url के बजाय टेम्पलेट का उपयोग करने के लिए एकल उद्धरण निकालें