YouTip LogoYouTip

Ng Ng Model Options

# AngularJS `ng-model-options` Directive [![Image 3: AngularJS Reference](#) AngularJS Reference](#) * * * ### Example Bind the input box value to a scope variable on blur:
var app = angular.module('myApp', []); app.controller('myCtrl', function($scope) { $scope.name = "John Doe"; }); [Try it Β»](#) * * * ## Definition and Usage The **ng-model-options** directive binds an HTML form element to a scope variable. You can specify when the data binding should occur, or how many milliseconds to wait. The parameter settings are described below. * * * ## Syntax The ``, ``, and `