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

Method _getAriaCurrent

src/material/list/list.ts:84–86  ·  view source on GitHub ↗

* Determine the value of `aria-current`. Return 'page' if this item is an activated anchor tag. * Otherwise, return `null`. This method is safe to use with server-side rendering.

()

Source from the content-addressed store, hash-verified

82 * Otherwise, return `null`. This method is safe to use with server-side rendering.
83 */
84 _getAriaCurrent(): string | null {
85 return this._hostElement.nodeName === 'A' && this._activated ? 'page' : null;
86 }
87
88 protected _hasBothLeadingAndTrailing(): boolean {
89 return this._meta.length !== 0 && (this._avatars.length !== 0 || this._icons.length !== 0);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected