문제

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