JSFiddle - React, Tailwind, and code Playground

HTML

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

JavaScript

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

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