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 ハードコードされた値とスコープ値をどのように組み合わせることができますか。
ありがとう、
オマー