igx-tabs-group gets error when ngIf is applied to it.
Steps to reproduce
- Go to https://stackblitz.com/edit/igx-tabs-group-ngif-issue
- Open a browser console.
Result
An error is thrown and tab layout is off.
ERROR TypeError: Cannot read property 'toArray' of undefined at IgxTabsGroupComponent.get [as index] (igx-tabs-group-ngif-issue.stackblitz.io/turbo_modules/[email protected]/tabs/tabs-group.component.js:52) at IgxTabsGroupComponent.get [as labelledBy] (igx-tabs-group-ngif-issue.stackblitz.io/turbo_modules/[email protected]/tabs/tabs-group.component.js:22) at Object.eval [as updateRenderer] (ng:///AppModule/TabsSample1Component.ngfactory.js:18) at Object.debugUpdateRenderer [as updateRenderer] (igx-tabs-group-ngif-issue.stackblitz.io/turbo_modules/@angular/[email protected]/bundles/core.umd.js:14773) at checkAndUpdateView (igx-tabs-group-ngif-issue.stackblitz.io/turbo_modules/@angular/[email protected]/bundles/core.umd.js:13887) at callViewAction (igx-tabs-group-ngif-issue.stackblitz.io/turbo_modules/@angular/[email protected]/bundles/core.umd.js:14233) at execEmbeddedViewsAction (igx-tabs-group-ngif-issue.stackblitz.io/turbo_modules/@angular/[email protected]/bundles/core.umd.js:14191) at checkAndUpdateView (igx-tabs-group-ngif-issue.stackblitz.io/turbo_modules/@angular/[email protected]/bundles/core.umd.js:13883) at callViewAction (igx-tabs-group-ngif-issue.stackblitz.io/turbo_modules/@angular/[email protected]/bundles/core.umd.js:14233) at execComponentViewsAction (igx-tabs-group-ngif-issue.stackblitz.io/turbo_modules/@angular/[email protected]/bundles/core.umd.js:14165)

Expected result
No error is thrown.
This issue is fixed in version 6.0.1
@sboykova thanks!