MCPcopy Create free account
hub / github.com/angular/components / _monitorProjectedLinesAndTitle

Function _monitorProjectedLinesAndTitle

src/material/list/list-base.ts:234–242  ·  view source on GitHub ↗

* Subscribes to changes in the projected title and lines. Triggers a * item lines update whenever a change occurs.

()

Source from the content-addressed store, hash-verified

232 * item lines update whenever a change occurs.
233 */
234 private _monitorProjectedLinesAndTitle() {
235 this._ngZone.runOutsideAngular(() => {
236 this._subscriptions.add(
237 merge(this._lines!.changes, this._titles!.changes).subscribe(() =>
238 this._updateItemLines(false),
239 ),
240 );
241 });
242 }
243
244 /**
245 * Updates the lines of the list item. Based on the projected user content and optional

Callers

nothing calls this directly

Calls 1

addMethod · 0.45

Tested by

no test coverage detected