angular / angular/angular

Feature Request: debounce in ngModelOptions

Đang mở
#19,705 15 bình luận 45 reaction 0 người được giao Xem trên GitHub
area: forms effort2: days feature feature: under consideration forms: ngModel freq2: medium state: Needs Design
Ngôn ngữ chính
TypeScript
Star
101k
Fork
27.5k
Merge trung bình
1 ngày 19 giờ
Pull request đã merge (30 ngày)
288

Mô tả

[ ] 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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu bằng cách xác định entry point của ngModelOptions và xem lại cách tùy chọn blur hiện có được xử lý. Xác định hành vi debounce dự kiến cho các input, bao gồm cách ví dụ ba giây sẽ tương tác với các cập nhật model, sau đó xác định các test liên quan cần thiết để định nghĩa khi nào tính năng được hoàn tất.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
angular, typescript
Lĩnh vực
frontend
Loại issue
Tính năng
Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức độ hoạt động
Ít trao đổi
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.