I am currently working on a directive where I need to convert both the attribute and object name values to lowercase. I have tried using filters, as well as the $filter service, but it doesn't seem to be working. Can anyone please provide assistance in achieving this?
Thank you in advance.
Directive Code:
bosAppModule.directive('layoutTableCellControlControlRender',['$compile','$filter', function($compile,$filter){
var layoutTableCellControlRenderObj={};
linkFnTableCellControlRender=function(scope, element, attributes) {
scope.controlData="NOCONTROLDATA";
scope.kendoOptions={};
//scope.field = $filter('lowercase')(scope.field);
};
layoutTableCellControlRenderObj.scope={field:"@",tranobj:"@" };
layoutTableCellControlRenderObj.restrict='AE';
layoutTableCellControlRenderObj.replace='true';
layoutTableCellControlRenderObj.template="<div field={{tablecellcontrol.attributename | lowercase }} tranobj={{tablecellcontrol.objectname | lowercase}}>" +
"</div>";
layoutTableCellControlRenderObj.link = linkFnTableCellControlRender;
return layoutTableCellControlRenderObj;
}]);