JSFiddle - React, Tailwind, and code Playground

by Sajeetharan Sinnathurai

HTML

<div ng-app>
    <div ng-controller="MyCtrl">
        <div><button id="mybutton" ng-click="showAlert()">Yes Link</button></div>  
         <div><button id="mybutton2" ng-click="NoAlert()">No Link</button></div>
        <div>Value: {{myvalue}}</div>
        <div><div ng-show="myvalue" class="ng-cloak">Here</div></div>
    </div>
</div>

JavaScript

function MyCtrl($scope) {
    
    $scope.myvalue = false;
    
    $scope.YesAlert = function(){
      $scope.myvalue = true;  
    };
    
    $scope.NoAlert = function(){
      $scope.myvalue = false;  
    };
}