the requirement is: Initially the image will not be display, I have a button, on click of that button the button. the button should hide and display the image next to that. I tried by this switch case, but its not correct way.
code
app.controller('Approve-ass-controller', function($scope) {
$scope.firstbtnapprove=true;
$scope.secondbtnapprove=true;
$scope.thirdbtnapprove=true;
$scope.firstApprove=false;
$scope.secondApprove=false;
$scope.thirdApprove=false;
$scope.showApprove=function(tag){
switch(tag){
case 'first':
$scope.firstApprove=true;
$scope.firstbtnapprove=false;
break;
case 'second':
$scope.secondApprove=true;
$scope.secondbtnapprove=false;
break;
case 'third':
$scope.thirdApprove=true;
$scope.thirdbtnapprove=false;
break;
}
}
});
So some one help me out in this. Thanks