(function() {
    'use strict';

    // Create module
    var module = angular.module('filteredTable', []);

    
    function filteredTable() {

        function controller($scope) {

            $scope.predicate = null;
            $scope.reverse = false;
            $scope.sorting = {};

            $scope.orderBy = function(key) {
                // Clean old predicate sorting
                $scope.sorting[$scope.predicate] = null;
                
                // Set new parameters
                $scope.predicate = key;
                $scope.reverse = !$scope.reverse;
                $scope.sorting[key] = $scope.reverse ? 'desc' : 'asc';
            }

        }

        return {
            restrict: 'A',
            controller: controller
        }

    }

    // Declare directive
    module.directive('filteredTable', [filteredTable]);

})();
@@ -743,16 +743,27 @@
 troller:
+ %5B'$scope',
  control
@@ -765,16 +765,17 @@
 ntroller
+%5D
 %0A       
@@ -848,17 +848,16 @@
 Table', 
-%5B
 filtered
@@ -861,17 +861,16 @@
 redTable
-%5D
 );%0A%0A%7D)()

Fix bug when file is minified We needed to inject scope with the full notation