Skip to content

Instantly share code, notes, and snippets.

/gist:752405fe446df28de7f1 Secret
Created Dec 7, 2014

Embed
What would you like to do?
$scope.switchSorting = function() {
if ($scope.sorting === '-status') {
return $scope.sorting = '+status';
} else {
return $scope.sorting = '-status';
}
};
@cesarandreu

This comment has been minimized.

Copy link

cesarandreu commented Dec 7, 2014

$scope.switchSorting = function switchSorting () {
  return $scope.sorting = ($scope.sorting === '-status' ? '+status' : '-status');
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.