Skip to content

How to set form pristine after previous form data loaded? #243

Closed
@ulion

Description

@ulion

form.$setPristine() do not work, since it only setup $pristine on all inputs, but angular-schema-form use some decorator scope to check the ngModel's $pristine status.

I guess either because the scope, or the way form.$setPristine() does not set $pristine of the model caused the problem. But how to resolve it?

I do not want the green border when the form loaded with existed model data. how to do that?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions