Pergunta

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?

Foi útil?

Solução

Use ng-include to embed templates into elements.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top