feat(MatIconRegistry): reactive signatures
- Vorherrschende Sprache
- TypeScript
- Sterne
- 25k
- Forks
- 6.8k
- Ø Merge
- 1 T. 8 Std.
- Gemergte PRs (30 T.)
- 91
Beschreibung
### 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
Beitragsleitfaden
Rechercherichtung
Beginne mit den im Issue genannten Einstiegspunkten MatIconRegistry.addSvgIconSet und getNamedSvgIcon und verfolge den bestehenden Workflow zum Laden von Icon-Sets. Als abgeschlossen sollte ein klares reaktives Abschlusssignal für das Laden einer oder mehrerer Icon-Set-Dateien vorhanden sein, wobei das Verhalten dokumentiert oder durch die bestehenden Tests der Registry abgedeckt sein sollte.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- angular, typescript
- Bereich
- frontend
- Issue-Typ
- Feature
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 25/100