我希望 ng-include 具有像 \'customer\'+{{action}}+\'.html\' 这样的值
.directive('tabContent',function(){
return {
restrict: 'E',
template:'<div ng-if="view==\'customer\'+{{action}}+\'.html'\" ng-include="\'{{action}}.html\'"></div>',
link: function(scope, elem, attrs) {
scope.action = attrs.action;
}
}
})
如何在值 ng-include 硬编码值和范围值中组合。
谢谢,
奥马尔