feat(MatIconRegistry): reactive signatures
- 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ả
### Feature Description
When I use MatIconRegistry, and I add an "iconSet" using "addSvgIconSet", I don't see any way of subscribing to what's internally doing: loading file -> generating an html/svg representation -> etc
And I don't know when all that computation has finished.
I'm using a little "hack" to subscribe to that workflow using:
`matIconRegistry.getNamedSvgIcon().subscribe(...)`
But that's kinda weak since I have to know the contents (what SVGs are included) in the iconSet.
I would like to have a robust API so that I can subscribe to that internal workflow and know when it has finished its calculations, something like:
`matIconRegistry.addSvgIconSet().subscribe(...)`
Even more interesting, allow this registry to load multiple files at once:
`matIconRegistry.addSvgIconSet([, ...]).subscribe(...)`
### Use Case
Synchronize APP Icons configuration at bootstrap.
Thanks
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu với các entry point MatIconRegistry.addSvgIconSet và getNamedSvgIcon được nêu trong issue, rồi theo dõi workflow tải icon-set hiện có. Phần hoàn thành cần bao gồm một tín hiệu hoàn tất reactive rõ ràng cho việc tải một hoặc nhiều tệp icon-set, với hành vi được ghi lại trong tài liệu hoặc được bao phủ bởi các test hiện có của registry.
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
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 25/100