ng-include 具有硬编码的混合值和范围内的变量

ng-include with mixed value hard-coded and variables from the scope

我希望 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 硬编码值和范围值。
谢谢,
奥马尔

您的 ng-include 应该如下更正。

ng-include="action + \'.html\'"></div>',