JSFiddle - React, Tailwind, and code Playground
by masa671
HTML
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.5.0/angular.js"></script>
<div ng-controller="TestCtrl">
<input type="email" ng-model="model.email" ng-change="model.modifyEmail()">
<button type="submit" ng-disabled="!model.email.length">Submit
</button>
</div>
JavaScript
var myApp = angular.module('myApp', [])
.controller("TestCtrl", function($scope) {
$scope.model = {
email: '',
modifyEmail: function () {
console.log('email modified');
}
};
});