Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Possibility to make model $dirty even if nothing was changed #7666

Closed
smashercosmo opened this issue Jun 2, 2014 · 2 comments
Closed

Possibility to make model $dirty even if nothing was changed #7666

smashercosmo opened this issue Jun 2, 2014 · 2 comments

Comments

@smashercosmo
Copy link

The need for this feature appeared right after PR #7495 was merged. While changes in this PR are absolutely reasonable, there are cases when we want to override this default behaviour.

Real life use case: user is filling a form skipping some required fields. I want to highlight these skipped fields on blur. So, it could be something like this

<input ng-model="data.value"
       ng-model-options="{ 
          updateOn: 'default blur',
          checkForChanges: false (or updateAlways: true) 
       }">
@shahata
Copy link
Contributor

shahata commented Jun 3, 2014

I'm pretty sure this will be resolved if and when #7414 is merged. (ng-model-options="{validateOn: 'blur'}")

@smashercosmo
Copy link
Author

Closing, because #7673 solved my personal use case

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants