Last active
January 8, 2017 20:05
-
-
Save pietmichal/9bdc5104e226d5fac4705a54497bade7 to your computer and use it in GitHub Desktop.
Medium tutorial part3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Component({ | |
| selector: 'app-tabs', | |
| template: ``, | |
| }) | |
| export class TabsComponent implements AfterContentInit { | |
| @ContentChildren(TabComponent) tabList: QueryList<TabComponent>; | |
| currentTab: TabComponent; | |
| ngAfterContentInit() { | |
| this.currentTab = this.tabList.first; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment