app/modules/main/helpers/ColumnAlignmentHelper.js
(function(){
'use strict';
function ColumnAlignmentHelper(ColumnOptionProvider){
var service = this;
service.getColumnAlignClass = getColumnAlignClass;
function getColumnAlignClass(alignRule) {
if (alignRule === ColumnOptionProvider.ALIGN_RULE.ALIGN_RIGHT) {
return 'rightAlignedColumn';
} else {
return 'leftAlignedColumn';
}
}
}
angular
.module('mdDataTable')
.service('ColumnAlignmentHelper', ColumnAlignmentHelper);
}());