Skip to content

Instantly share code, notes, and snippets.

/gist:9b120e40d4f7252dfe17 Secret
Created Dec 17, 2014

Embed
What would you like to do?
$scope.changeLandingView = function(val){
switch(val){
case 'all':
$scope.loanList = $scope.loans;
break;
case 'settings':
$scope.loanList = _.find($scope.loans,
function(i) { return i.status_id == '1'; }
);
break;
case 'fall':
$scope.loanList = _.find($scope.loans,
function(i) { return i.season == 'F'; }
);
//$scope.$apply();
break;
case 'spring':
$scope.loanList = _.find($scope.loans,
function(i) { return i.season == 'S'; }
);
break;
} // end switch
}
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.