JSFiddle - React, Tailwind, and code Playground

HTML

<div ng-app="app" ng-controller="Ctrl">
    <form name="theform">
        <textarea ng-model="thetext" ng-minlength="10" ng-required="true"></textarea>
        <button ng-click="b1()" ng-disabled="theform.$invalid">B1</button>
    </form>
    <button ng-click="b2()" ng-disabled="theform.$invalid">B2</button>
</div>

JavaScript

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

app.controller("Ctrl", function($scope) {
    $scope.thetext = "";
    $scope.b1 = function() {
        console.log("B1");
    };
    $scope.b2 = function() {
        console.log("B2");
    };
});