angular / angular/angular

Feature Request: debounce in ngModelOptions

Open
#19,705 15 comments 45 reactions 0 assignees View on GitHub
area: forms effort2: days feature feature: under consideration forms: ngModel freq2: medium state: Needs Design
Dominant language
TypeScript
Stars
101k
Forks
27.5k
Avg merge
1d 19h
Merged PRs (30d)
288

Description

[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report
[ x] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

## Current behavior
No support for `debounce` in `ngModelOptions`

## Expected behavior
Angular doesn't yet support `debounce` `ngModelOption` on inputs. I would like to know what is the logic behind not implementing the same with `blur`?

## Example usecase for debounce:

A text input like in Google docs which should save the typed text after 3 secs of no keypress after typing.

Contributor guide

Open the contributing guide

Research direction

Start by locating the ngModelOptions entry point and reviewing how the existing blur option is handled. Determine the intended debounce behavior for inputs, including how the three-second example should interact with model updates, then identify the relevant tests needed to define when the feature is complete.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, typescript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.