Fix board list sorting
This commit is contained in:
@@ -66,9 +66,8 @@ app.controller('ListController', function ($scope, $location, $filter, BoardServ
|
||||
|
||||
$scope.filterData = function () {
|
||||
console.log("filter");
|
||||
angular.copy($scope.boardservice.getData(), $scope.boards);
|
||||
$scope.boards = $filter('orderBy')($scope.boards, 'title');
|
||||
console.log($scope.boards);
|
||||
angular.copy($scope.boardservice.getData(), $scope.boardservice.sorted);
|
||||
$scope.boardservice.sorted = $filter('orderBy')($scope.boardservice.sorted, 'title');
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user