blob: d961606b782ca692bc77c30f7355f4e6f0fb5fe2 [file] [log] [blame]
angular.module('registry.controllers').directive('pluginlist', function () {
return {
restrict: 'E',
templateUrl: '/partials/directives/pluginlist.html',
controller:['$scope', '$rootScope', 'Downloads', function($scope, $rootScope, Downloads){
Downloads.getDownloads().then(function(obj){
$scope.downloads = obj.data;
$scope.downloadsArray = obj.arrData;
});
$scope.reverse = null;
$scope.orderValue = 'key';
$scope.setOrderBy = function setOrderBy (value) {
$scope.orderValue = value;
$scope.reverse = !$scope.reverse;
};
}],
link: function(scope, element, attrs, controller){
}
};
});