JSFiddle - React, Tailwind, and code Playground

HTML

<div ng-app="myApp">
    <section ng-controller="PatientCtrl">
        <span ng-switch on="patientSwitch">
            <span ng-switch-when="edit">
                <button ng-click="patientSwitch='save'">save</button>
            </span>
            <span ng-switch-when="save">
                 <button ng-click="patientSwitch='edit'">edit</button>
            </span>
        </span>
    </section>
</div>

JavaScript

var myApp = angular.module("myApp", []);

myApp.controller("PatientCtrl", function($scope) {
    $scope.patientSwitch = "edit";
});