angular / angular/components

feat(CdkObserveContent): Enable observing Resize using ResizeObserver

オープン
#23,003 コメント 3 件 リアクション 4 件 担当者 0 名 GitHub で見る
area: cdk/observers feature needs: discussion P3
主要言語
TypeScript
スター
25k
フォーク
6.8k
平均マージ
1日 8時間
マージ済み PR(30日)
91

説明

#### Feature Description

It would be great, if the current implementation of CdkObserveContent could be made more generic, so that it could be used for implementing other *Observer APIs.

#### Use Case

On my project, we need to observe the resizing of an element - ResizeObserver is great for this. But it's cumbersome to work with on it's own.

I've added some directives and services that basically just extend and wrap the current CdkObserveContent services and directives, which seems to work, but there's some typecasting and I/O handling that is not very pretty. It looks like it would be a fairly small effort to make the generic parts of the current implementation properly generic, which would make it a breeze to support other observer APIs.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず現在の CdkObserveContent ディレクティブとサービスを読み、その構造を、説明されている ResizeObserver のユースケースと比較してください。他の Observer APIs をサポートできるようにするために、どの部分を汎用化する必要があるかを判断し、既存のコンテンツ監視の動作が維持されることを確認してください。

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

評価

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

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

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