iamisti/mdDataTable

View on GitHub
app/modules/main/directives/helpers/mdtAnimateSortIconHandlerDirective.js

Summary

Maintainability
A
0 mins
Test Coverage
(function(){
    'use strict';

    function mdtAnimateSortIconHandlerDirective(){
        return {
            restrict: 'A',
            scope: false,
            link: function($scope, element){
                if($scope.animateSortIcon){
                    element.addClass('animate-sort-icon');
                }
            }
        };
    }

    angular
        .module('mdDataTable')
        .directive('mdtAnimateSortIconHandler', mdtAnimateSortIconHandlerDirective);
}());