There are 3 buttons, 2 of which are hidden. When you press the button, the first button disappears, the second appears. When you click on the second, the third appears, the second is hidden. Clicking on the third removes a specific item. I tried ng-switch , but something was wrong.

 <td ng-switch="flag"> <button type="button" ng-swith-when="flag=0" ng-click="flag=1" class="btn btn-success">Confirm</button> <button type="button" ng-switch-when="flag=1" ng-click="flag=2" class="btn btn-primary">Send</button> <button type="button" ng-switch-when="flag=2" ng-click="" class="btn btn-danger">Complete</button> </td> 
  • Show the code you tried to implement. - Stepan Kasyanenko
  • If I remember correctly how ng-switch works, then I need to write like this: ng-switch-when="1" . And, by the way, in the first ng-swith-when letter c is omitted - nörbörnën

0