feat(MatIconRegistry): reactive signatures
- Lingua principale
- TypeScript
- Stelle
- 25k
- Fork
- 6.8k
- Merge medio
- 1g 8h
- PR unite (30g)
- 91
Descrizione
### 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
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia dai punti di ingresso MatIconRegistry.addSvgIconSet e getNamedSvgIcon indicati nell’issue e traccia il workflow esistente per il caricamento dei set di icone. Il lavoro completato dovrebbe includere un segnale reattivo chiaro del completamento del caricamento di uno o più file di set di icone, con il comportamento documentato o coperto dai test esistenti del registry.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- angular, typescript
- Ambito
- frontend
- Tipo di issue
- Funzionalità
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 25/100