feat(MatIconRegistry): reactive signatures
- 主要语言
- TypeScript
- 星标
- 25k
- 派生
- 6.8k
- 平均合并
- 1 天 8 小时
- 30 天内合并 PR
- 91
描述
### 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
贡献指南
调研方向
从 issue 中提到的入口点 MatIconRegistry.addSvgIconSet 和 getNamedSvgIcon 开始,跟踪现有的图标集加载工作流。完成的内容应包括用于加载一个或多个图标集文件的明确反应式完成信号,并且应对该行为进行文档说明,或由 registry 的现有测试覆盖。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- angular, typescript
- 领域
- frontend
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 25/100