Skip to content Skip to sidebar Skip to footer

Angular 2 Tabs - Access Child Elements

i'm trying to access the html elements inside the tabs component using the example from angular 2 docs: https://angular.io/resources/live-examples/homepage-tabs/ts/plnkr.html Here

Solution 1:

You could try the following:

@ViewChild('testBox') testDiv:ElementRef;

instead of:

@ViewChild('testDiv') testDiv:ElementRef;

(Or it's a typo in your snippet)


Post a Comment for "Angular 2 Tabs - Access Child Elements"