ng-model-options

in 5 minutes

this is going to be really really fast

Kent C. Dodds

Utah

1 wife, 2 kids

Alianza, Inc.

@kentcdodds

@kentcdodds

ng-model-options

Gives you control over how your ng-model is updated

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

function MyController() {
  var vm = this;

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

Thank You!

Please ask me questions:

http://bit.ly/ng-model-options-questions

Serious about forms? Use angular-formly

bit.ly/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.

  • 6,459