src/directives/owlExportControls.js
Function owlExportControls
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function owlExportControls (owlTable) {
return {
restrict: 'EA',
require: '^owlTable',
templateUrl: 'partials/export.html',
Function controller
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
controller: ['$scope', function ($scope) {
this.csvHeader = function () {
return $scope.columns.map(function (column) {
return column.title;
});