JSFiddle - React, Tailwind, and code Playground
by yazaki
HTML
<div ng-app="" ng-controller="TestCtrl">
<form name="myform" novalidate>
This is the field required : <input type="text" ng-model="some" required />
<div>
<input type="button" ng-click="Save(data)" value="Save" />
</div>
</form>
</div>
JavaScript
function TestCtrl($scope){
$scope.Save = function(data){
alert($scope.myform.$valid);
}
}