JSFiddle - React, Tailwind, and code Playground

by patrickarlt

HTML

<div ng-app>
    <div ng-controller="MainCtrl">
        <h1>{{title}}</h1>
    </div>
</div>

JavaScript

function MainCtrl($scope){
    $scope.title = "Hello World"
    
    setTimeout(function(){
        $scope.$apply(function(){
            $scope.title = "Angular is Magic!";
        });
    }, 500);
}