I'm very newbie to angularjs, and I followed the script document of angularjs to created a very simple script tag of template, however it does't work at all, below is the code and JSFIDDLE.
<div ng-app>
<table>
<ng-include src="tpl.html"></ng-include>
</table>
<div ng-include src="tpl2.html"></div>
<script type="text/ng-template" id="tpl.html">
<tr>
<td>ACBC</td>
</tr>
</script>
<script type="text/ng-template" id="tpl2.html">
test
</script>
</div>
Any problem with my code?
srcis angular expression evaluating to URL. If the source is a string constant, you have to wrap it in single quotes,