V
V
Vassa2014-06-26 16:43:19
Angular
Vassa, 2014-06-26 16:43:19

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

1 answer(s)
M
Mikhail Osher, 2014-06-26
@miraage

As far as I know, this method is only available on the form.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question