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.

Suggestion to use safe $apply in ngModelDirective #8762

Closed
@smashercosmo

Description

@smashercosmo

In ngModelDirective $apply is used to change model's value on event different from default and to change model's $touched state. But I suggest to use safe $apply instead, because we can't guarantee that some event (blur for example) won't be triggered from the outside during digest cycle. Real life example. Try to change value in the first input - you'll get "$digest already in progress" error.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions