Answer the question
In order to leave comments, you need to log in
Why is the $setDirty() method missing from scope?
Please tell me. why isn't the $setDirty() method present everywhere?
In the parent scope (form) there is $setDirty(), the elements are no longer visible. What could be the reason for this?
<input class="d-form__input-text" name="customerName" type="text" ng-model="customerName" ng-required="true">
$dirty: false
$error: Object
$formatters: Array[1]
$invalid: true
$isEmpty: function
$modelValue: undefined
$name: "customerName"
$parsers: Array[1]
$pristine: true
$render: function
$setPristine: function
$setValidity: function
$setViewValue: function
$valid: false
$viewChangeListeners: Array[0]
$viewValue: undefined
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question