Last active
January 8, 2017 19:31
-
-
Save pietmichal/0852fa33a5f1047f1d492370cf8fb245 to your computer and use it in GitHub Desktop.
Medium tutorial part1
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', | |
| template: ` | |
| <app-tabs> | |
| <app-tab name="First" [templateRef]="firstRef"></app-tab> | |
| <app-tab name="Second" [templateRef]="secondRef"></app-tab> | |
| <app-tab name="Third" [templateRef]="thirdRef"></app-tab> | |
| </app-tabs> | |
| <template #firstRef> | |
| First tab content. | |
| </template> | |
| <template #secondRef> | |
| Second tab content. | |
| </template> | |
| <template #thirdRef> | |
| Third tab content. | |
| </template> | |
| `, | |
| }) | |
| export class AppComponent {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment