JSFiddle - React, Tailwind, and code Playground

by Sajeetharan Sinnathurai

HTML

<div ng-controller="theCtrl">
    
    <div id="callFunction" ng-click="myFunction()">content here</div>
<div id="contactInfo" ng-show="showContent">content here</div>
    
</div>

JavaScript

angular.module('appName', [])
      .controller('theCtrl', ['$scope', function ($scope) {
        $scope.showContent = false;

        $scope.myFunction = function() {
            $scope.showContent = !$scope.showContent;
        }
      }]);

    angular.element(document).ready(function() {
      angular.bootstrap(document, ['appName']);
    });