Angular: Empty Fiddle
http://angularjs.org/
HTML
<script src="http://code.angularjs.org/angular-1.0.0rc5.js"></script>
<div ng-controller="MyCtrl">
<input type="email" ng-model="email" ng-change="check()" autofocus />
</div>
JavaScript
var myApp = angular.module('myApp',[]);
//myApp.directive('myDirective', function() {});
//myApp.factory('myService', function() {});
function MyCtrl($scope) {
$scope.email = '[email protected]';
$scope.check = function() {
alert("Checking: " + $scope.email);
}
}