JSFiddle - React, Tailwind, and code Playground

HTML

<div ng-app>
    <div ng-controller="TestCtrl">
        <div class="text-center" ng-show="loading">
             <h1>Loading...</h1>

        </div>
        <div class="text-center" ng-show="!loading">
             <h1>Done!</h1>

        </div>
    </div>
</div>

JavaScript

function TestCtrl($scope, $timeout) {
    $scope.loading = true;
    $timeout(function () {
        $scope.loading = false;
         $scope.apply();
    }, 1000);
}