File tree Expand file tree Collapse file tree 2 files changed +3
-9
lines changed
material/tabs/tab-nav-bar
material-experimental/mdc-tabs/tab-nav-bar Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -142,9 +142,6 @@ export class MatTabNav extends _MatTabNavBase implements AfterContentInit {
142
142
} ,
143
143
} )
144
144
export class MatTabLink extends _MatTabLinkBase implements MatInkBarItem , OnInit , OnDestroy {
145
- /** Unique id for the tab. */
146
- @Input ( ) override id = `mat-mdc-tab-link-${ nextUniqueId ++ } ` ;
147
-
148
145
_foundation = new MatInkBarFoundation ( this . elementRef . nativeElement , this . _document ) ;
149
146
150
147
private readonly _destroyed = new Subject < void > ( ) ;
@@ -198,7 +195,7 @@ let nextUniqueId = 0;
198
195
} )
199
196
export class MatTabNavPanel {
200
197
/** Unique id for the tab panel. */
201
- @Input ( ) id = `mat-mdc- tab-nav-panel-${ nextUniqueId ++ } ` ;
198
+ @Input ( ) id = `mat-tab-nav-panel-${ nextUniqueId ++ } ` ;
202
199
203
200
/** Id of the active tab in the nav bar. */
204
201
_activeTabId ?: string ;
Original file line number Diff line number Diff line change @@ -259,8 +259,8 @@ export class _MatTabLinkBase
259
259
) ;
260
260
}
261
261
262
- /** Unique id for the tab. Provided by the sub-class. */
263
- id : string ;
262
+ /** Unique id for the tab. */
263
+ @ Input ( ) id = `mat-tab-link- ${ nextUniqueId ++ } ` ;
264
264
265
265
constructor (
266
266
private _tabNavBar : _MatTabNavBase ,
@@ -359,9 +359,6 @@ export class _MatTabLinkBase
359
359
} ,
360
360
} )
361
361
export class MatTabLink extends _MatTabLinkBase implements OnDestroy {
362
- /** Unique id for the tab. */
363
- @Input ( ) override id = `mat-tab-link-${ nextUniqueId ++ } ` ;
364
-
365
362
/** Reference to the RippleRenderer for the tab-link. */
366
363
private _tabLinkRipple : RippleRenderer ;
367
364
You can’t perform that action at this time.
0 commit comments