Frage

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?

War es hilfreich?

Lösung

Use ng-include to embed templates into elements.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top