Use ng-include to embed templates into elements.
How to bind a templateUrl to an element
-
11-06-2023 - |
Question
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?
La solution
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow