Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <input ng-model="..."
- type="radio"
- name="input"
- ng-value={{k}}
- ng-disabled="field.readonly"
- ng-required="field.required"
- ng-init="test(Form.input)"
- ng-change="test(Form.input)">
- $scope.test = function (object) {
- console.log(object);
- console.log(object.$valid);
- console.log(JSON.stringify(object));
- };
- // console.log(object);
- c {$viewValue: NaN, $modelValue: NaN, $parsers: Array[1], $formatters: Array[1], $viewChangeListeners: Array[1]…}
- $dirty: false
- $error: Object
- $formatters: Array[1]
- $invalid: true
- $isEmpty: function (a){return F(a)||""===a||null===a||a!==a}
- $modelValue: undefined
- $name: "input"
- $parsers: Array[1]
- $pristine: true
- $render: function (){c[0].checked=d.value==e.$viewValue}
- $setPristine: function (){this.$dirty=!1;this.$pristine=!0;g.removeClass(e,yb);g.addClass(e,Pa)}
- $setValidity: function (a,c){p[a]!==!c&&(c?(p[a]&&n--,n||(k(!0),this.$valid=!0,this.$invalid=!1)):(k(!1),this.$invalid=!0,this.$valid=!1,n++),p[a]=!c,k(c,a),l.$setValidity(a,c,this))}
- $setViewValue: function (d){this.$viewValue=d;this.$pristine&&(this.$dirty=!0,this.$pristine=!1,g.removeClass(e,Pa),g.addClass(e,yb),l.$setDirty());r(this.$parsers,function(a){d=a(d)});this.$modelValue!==
- $valid: false
- $viewChangeListeners: Array[1]
- $viewValue: undefined
- __proto__: Object
- // console.log(object);
- true
- // console.log(JSON.stringify(object));
- {"$viewValue":null,"$modelValue":null,"$parsers":[null],"$formatters":[null],"$viewChangeListeners":[null],"$pristine":true,"$dirty":false,"$valid":true,"$invalid":false,"$name":"input","$error":{}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement