问题
Can I do something like this :
<div ng-include="{{data}}Template"></div>
-- Requirement is to append a constant string with the template URL.
回答1:
yes you can do it like this,
<div ng-include="data+'Template' "></div>
来源:https://stackoverflow.com/questions/20755200/can-i-append-a-string-with-the-ng-include-url