in 5 minutes

this is going to be really really fast

Kent C. Dodds


1 wife, 2 kids

Alianza, Inc.




Gives you control over how your ng-model is updated

<input ng-model="vm.myModel"
       ng-model-options="vm.myModelOptions" />
  .controller('MyController', MyController);

function MyController() {
  var vm = this;

  vm.myModel = 'Hey!';
  vm.myModelOptions = {
    // model options config here

Thank You!

Please ask me questions:

Serious about forms? Use angular-formly

ng-model-options in 5 minutes

By Kent C. Dodds

ng-model-options in 5 minutes

ng-model is super awesome, but sometimes you want to have a little more control over when your model is updated. You need... options ;-) this is where ng-model-options comes in handy.

  • 2,274
Loading comments...

More from Kent C. Dodds