Scrolling SDK (virtual-scroll) - View isn't updated when list is updated (items added/removed)
- Ngôn ngữ chính
- TypeScript
- Star
- 25k
- Fork
- 6.8k
- Merge trung bình
- 1 ngày 8 giờ
- Pull request đã merge (30 ngày)
- 91
Mô tả
#### What is the expected behavior?
If a data-list that binded to ``, is updated (items are added/ removed from this list), the `` updated as well.
#### What is the current behavior?
Changing the list will not updated the view (``)
#### What are the steps to reproduce?
StackBlitz starter: https://stackblitz.com/edit/angular-hsr4tz?file=app%2Fcdk-virtual-scroll-overview-example.html
In this demo you can see that after adding items to the list, the view isn't updated.
#### Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular 7.1.4
Material 7.2.0
Browser: Chrome
#### Is there anything else we should know?
The documentation doesn't discuss about adding/removing items from data-list.
See docs at: https://material.angular.io/cdk/scrolling/overview
Hướng dẫn đóng góp
Hướng nghiên cứu
Tái hiện hành vi trong ví dụ StackBlitz được liên kết bằng cách thêm và xóa các mục khỏi danh sách được liên kết với cdk-virtual-scroll-viewport. Đọc tổng quan về thao tác cuộn của CDK và theo dõi hành vi virtual-scroll liên quan; hoàn tất khi viewport phản ánh các thay đổi của danh sách và tài liệu giải thích hành vi này.
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
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100