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

Function _checkDomForUnscopedTextContent

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

Checks whether the list item has unscoped text content.

()

Source from the content-addressed store, hash-verified

311
312 /** Checks whether the list item has unscoped text content. */
313 private _checkDomForUnscopedTextContent() {
314 this._hasUnscopedTextContent = Array.from<ChildNode>(
315 this._unscopedContent!.nativeElement.childNodes,
316 )
317 .filter(node => node.nodeType !== node.COMMENT_NODE)
318 .some(node => !!(node.textContent && node.textContent.trim()));
319 }
320}
321
322/**

Callers

nothing calls this directly

Calls 1

filterMethod · 0.45

Tested by

no test coverage detected