| $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