質問

I want to do something like this:

<div ng-repeat="item in items" ng-bind-templateUrl="path/to/{{item.templateName}}.html" id="item.id"></div>

Is there any way to do this?

役に立ちましたか?

解決

Use ng-include to embed templates into elements.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top