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

Method _getTabLabelId

src/material/tabs/tab-group.ts:513–515  ·  view source on GitHub ↗

Returns a unique id for each tab label element

(tab: MatTab, index: number)

Source from the content-addressed store, hash-verified

511
512 /** Returns a unique id for each tab label element */
513 _getTabLabelId(tab: MatTab, index: number): string {
514 return tab.id || `${this._groupId}-label-${index}`;
515 }
516
517 /** Returns a unique id for each tab content element */
518 _getTabContentId(index: number): string {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected