JSFiddle - React, Tailwind, and code Playground

by inadcod

HTML

<body ng-app="ngToggle">
    <div ng-controller="AppCtrl">
        <button ng-click="custom=!custom">Custom</button>
        <span ng-hide="custom">From:
            <input type="text" id="from" />
        </span>
        <span ng-hide="custom">To:
            <input type="text" id="to" />
        </span>
        <span ng-show="custom"></span>
    </div>
</body>

JavaScript

angular.module('ngToggle', [])
    .controller('AppCtrl',['$scope', function($scope){
        $scope.custom = true;
}]);