Chapter 9: Controlling model inputs with ngModelOptions

HTML

<script src="https://code.angularjs.org/1.3.2/angular.min.js"></script>
<div ng-app="myApp">
    <form name="emailForm">
        Name:
        <input type="email"
               name="emailInput"
               ng-model="email"
               ng-model-options="{updateOn: 'blur click mousemove'}" />
    </form>
    <!-- will only update on the events listed for updateOn -->
    {{ emailForm.emailInput }}
</div>

JavaScript

angular.module('myApp', []);