Skip to content
This repository has been archived by the owner on Sep 8, 2020. It is now read-only.

fix updating valid and dirty statuses #314

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

fix updating valid and dirty statuses #314

wants to merge 1 commit into from

Conversation

manassorn
Copy link

The array of functions in controller.$parser is executed before validation.
That means the controller.$valid is incorrect.
controller.$valid is still the old value when the function is executed.
controller.$viewChangeListeners should be used instead of controller.$parser.
That is because controller.$viewChangeListeners is executed after validation.

The array of functions in `controller.$parser` is executed before validation.
That means the `controller.$valid` is incorrect.
`controller.$valid` is still the old value when the function is executed.
`controller.$viewChangeListeners` should be used instead of `controller.$parser`.
That is because `controller.$viewChangeListeners` is executed after validation.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant