Skip to content

Commit 0fa0766

Browse files
committed
feat(tabs/bottomNav): fixing the components and samples to work with ng8 #4297
1 parent d6677ab commit 0fa0766

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

Diff for: projects/igniteui-angular/src/lib/tabbar/tabbar.component.spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ class TemplatedTabBarTestComponent {
379379
`
380380
})
381381
class TabBarRoutingTestComponent {
382-
@ViewChild(IgxBottomNavComponent)
382+
@ViewChild(IgxBottomNavComponent, { static: true })
383383
public bottomNavComp: IgxBottomNavComponent;
384384
}
385385

@@ -398,6 +398,6 @@ class TabBarRoutingTestComponent {
398398
`
399399
})
400400
class TabBarTabsOnlyModeTestComponent {
401-
@ViewChild(IgxBottomNavComponent)
401+
@ViewChild(IgxBottomNavComponent, { static: true })
402402
public bottomNavComp: IgxBottomNavComponent;
403403
}

Diff for: projects/igniteui-angular/src/lib/tabbar/tabbar.component.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -644,11 +644,11 @@ export class IgxTabComponent {
644644
}
645645

646646
/**@hidden*/
647-
@ViewChild('defaultTabTemplate', { read: TemplateRef })
647+
@ViewChild('defaultTabTemplate', { read: TemplateRef, static: true })
648648
protected defaultTabTemplate: TemplateRef<any>;
649649

650650
/**@hidden*/
651-
@ContentChild(IgxTabTemplateDirective, { read: IgxTabTemplateDirective })
651+
@ContentChild(IgxTabTemplateDirective, { read: IgxTabTemplateDirective, static: true })
652652
protected customTabTemplateDir: IgxTabTemplateDirective;
653653

654654
/**

Diff for: projects/igniteui-angular/src/lib/tabs/tab-item.component.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@ export class IgxTabItemComponent implements IgxTabItemBase {
7171
}
7272

7373
/**@hidden*/
74-
@ViewChild('defaultTabTemplate', { read: TemplateRef })
74+
@ViewChild('defaultTabTemplate', { read: TemplateRef, static: true })
7575
protected defaultTabTemplate: TemplateRef<any>;
7676

7777
/**@hidden*/
78-
@ContentChild(IgxTabItemTemplateDirective, { read: IgxTabItemTemplateDirective })
78+
@ContentChild(IgxTabItemTemplateDirective, { read: IgxTabItemTemplateDirective, static: true })
7979
protected customTabTemplateDir: IgxTabItemTemplateDirective;
8080

8181
private _nativeTabItem: ElementRef;

Diff for: src/app/bottomnav-routing/bottomnav-routing.sample.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ templateUrl: 'bottomnav-routing.sample.html'
99
})
1010
export class BottomNavRoutingSampleComponent implements AfterViewInit {
1111

12-
@ViewChild(IgxBottomNavComponent)
12+
@ViewChild(IgxBottomNavComponent, { static: true })
1313
bottomNavComp: IgxBottomNavComponent;
1414

1515
constructor(private router: Router, private renderer: Renderer2) { }

0 commit comments

Comments
 (0)