angular / angular/components

feat(MatIconRegistry): reactive signatures

オープン
#29,437 コメント 3 件 リアクション 2 件 担当者 0 名 GitHub で見る
area: material/icon feature P4
主要言語
TypeScript
スター
25k
フォーク
6.8k
平均マージ
1日 8時間
マージ済み PR(30日)
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 から始め、既存のアイコンセット読み込みワークフローを追跡してください。完了条件には、1 つ以上のアイコンセットファイルの読み込みに対する明確なリアクティブ完了シグナルが含まれ、動作がドキュメント化されるか、Registry の既存テストでカバーされている必要があります。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
angular, typescript
領域
frontend
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。