Domanda

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?

È stato utile?

Soluzione

Use ng-include to embed templates into elements.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top