MatTabHeader missing in MatTabGroup
Description
I have recently upgraded @angular/material from 8.1.2 to 8.2.3. The following snippet now gives me the following error: "Property '_tabList' does not exist on type 'MatTabGroupBaseHeader'."
@ViewChild(MatTabGroup, { static: false }) tabs: MatTabGroup;
const tabHeaderLabelList = <HTMLElement>(
this.tabs._tabHeader._tabList.nativeElement.querySelector(
'.mat-tab-labels'
)
);
I've noticed that in PR #16805, under file src/material/tabs/tab-group.ts, MatTabGroupBaseHeader is now being used for _tabHeader property instead of MatTabHeader. Because MatTabGroupBaseHeader doesn't have _tabList property, I am getting this error and cannot compile.
Would anybody be able to provide suggestions as to how to fix this error? Going to downgrade @angular/material to 8.1.1 for now. Thank you.
Environment
- Angular: 8.2.14
- CDK/Material: 8.1.2 -> 8.2.3
- Browser(s): Chrome
- Operating System (e.g. Windows, macOS, Ubuntu): Windows
i got below error
Can't bind to 'dataSource' since it isn't a known property of 'table'
Properties whose names start with an underscore are considered private APIs and we don't make any commitments around backwards compatibility and things being moved around between versions.
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.