JSFiddle - React, Tailwind, and code Playground
HTML
<button ng-click="toggle()">test </button>
<div ng-show="state" >
hello test
</div>
CSS
.vis{
height:100px;
display:none;
}
JavaScript
function ctrl($scope) {
$scope.toggle = function () {
alert("Hello! I am an alert box!!");
$scope.state = !$scope.state;
};
}