:内にテンプレートを動的にロードしようとしていますng-repeat
:
<ul>
<li ng-repeat="prop in entity" >
<div ng-include src="prop.template"></div>
</li>
</ul>
prop.template
テンプレートのURLと同じです。例:'partials/form/text.html'
。上記のコードは次のエラーを生成します:
Error: 10 $digest() iterations reached. Aborting!
Watchers fired in the last 5 iterations: [["prop.template; newVal: \"partials/form/text.html\"; oldVal: undefined","prop.template; newVal: \"partials/form/text.html\"; oldVal: undefined" .... (and so on)
prop.template
テンプレートのURLを取得し、そのファイルからHTMLをDOMに挿入するにはどうすればよいng-repeat
ですか?