Thanks to visit codestin.com
Credit goes to github.com

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
@smashercosmo

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

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