Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
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

Description

@smashercosmo

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) 
       }">

Activity

  1. shahata commented on Jun 3, 2014

    @shahata
    Contributor

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

  2. smashercosmo commented on Jun 16, 2014

    @smashercosmo
    Author

    Closing, because #7673 solved my personal use case

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions