I want the ng-include to have value like that \'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;
}
}
})
How can I combine in the value ng-include hard-coded values and scope values.
Thanks,
Omer
Your ng-include should correct like below.
ng-include="action + \'.html\'"></div>',