JSFiddle - React, Tailwind, and code Playground

HTML

<div ng-app="myApp">
<div ng-controller="test">
<textarea ng-model="cancelMessage"></textarea>
<span> {{100 - cancelMessage.length}} characters remaining</span>
    <button ng-click="clickTest()">clickTest</button>
</div>
</div>

JavaScript

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

myApp.controller('test', function($scope) {
    $scope.cancelMessage = '';
    $scope.clickTest = function(){
        alert($scope.cancelMessage);
    }; 
});