examples/browser/vendor/angular-ui.js
function (inst) {
            if (inst.isDirty()) {
              inst.save();
              ngModel.$setViewValue(elm.val());
              if (!scope.$$phase)
                scope.$apply();
            }
          }
function (inst) {
            if (inst.isDirty()) {
              inst.save();
              ngModel.$setViewValue(elm.val());
              if (!scope.$$phase)
                scope.$apply();
            }
          }
function ( inst ) { if ( inst . isDirty ( ) ) { inst . save ( ) ; ngModel . $setViewValue ( elm . val ( ) ) ; if ( ! scope . $$phase ) scope . $apply ( ) ; } }
Update model on button click
Update model on button click