标签: javascript angularjs angularjs-directive
我的tmpl文件中有以下内容:
<div ng-include="include.tmpl" ng-include-variables="{ text: {{ "global.login.text" | translate }} }"></div>
我这样做会出错。必须有一种方法可以传递以下值:
{{ "global.login.text" | translate }}
作为我的include.tmpl的“文本”。
有人知道吗?