JSFiddle - React, Tailwind, and code Playground

by yonet3d

HTML

<body ng-app="app">
    <div ng-controller="MainController">
        <input type="text" ng-model="data.message"/>
        <h1 ng-show="data.message">{{ data.message | reverse }}</h1>
    </div>
</body>

JavaScript

var app = angular.module('app', []);

app.controller('MainController', ['$scope', function($scope){
    $scope.data = {message: "hi"};
}])

app.filter('reverse', [function () {
  return function (text) {
    return text.split("").reverse().join("");
  }
}]);