Angular: Empty Fiddle

http://angularjs.org/

by Freewind

HTML

<script src="http://code.angularjs.org/angular-1.0.0rc5.js"></script>
<div ng-controller="MyCtrl">
    <input type="text" 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: " + email);
    }
}