JSFiddle - React, Tailwind, and code Playground

HTML

<div ng-app="BtnApp">
<div ng-controller="BtnCtrl">
    Do you want Car?
    <input type="button" ng-model="youWantCar" ng-value="youWantCar" ng-click="changeStatus()"/>
</div>    
</div>

JavaScript

var app = angular.module('BtnApp', []);
app.controller('BtnCtrl',function($scope){
    $scope.youWantCar = "No";
    $scope.changeStatus = function(){
        if($scope.youWantCar == "No")
            $scope.youWantCar = "Yes";
        else
            $scope.youWantCar = "No";
    };
    
    
});