0

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?

Martin
  • 1,283
  • 2
  • 14
  • 28

1 Answers1

1

Use ng-include to embed templates into elements.

null
  • 7,906
  • 3
  • 36
  • 37