[Vuejs]-How to show list dom revered in vue js?

0👍

add to page controller

$scope.setOrderProperty = function(propertyName) {
if ($scope.orderProperty === propertyName) {
    $scope.orderProperty = '-' + propertyName;
} else if ($scope.orderProperty === '-' + propertyName) {
    $scope.orderProperty = propertyName;
} else {
    $scope.orderProperty = propertyName;
}

}

and

 $scope.sortType     = 'x.UserID'; $scope.sortReverse  = false; $scope.searchFish   = '';  

Leave a comment