JSFiddle - React, Tailwind, and code Playground
HTML
<script>
var app = angular.module('myApp', []);
app.controller('myCtrl', function($scope) {
$scope.name=undefined;
$scope.preview = function(){
alert("Previewed");
};
$scope.update = function(){
alert("Updated");
}
});
</script>
<div ng-app="myApp" ng-controller="myCtrl">
<form>
<input type="text" ng-model='name' required>
<button ng-click='preview()'>Preview</button>
<button ng-click='update()'>Update</button>
</form>
</div>