Created
December 21, 2016 19:48
-
-
Save wKoza/184ceb0b45b51a9bd4227a63432242a1 to your computer and use it in GitHub Desktop.
This file contains 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
import { Component, Input } from '@angular/core'; | |
@Component({ | |
selector: 'tab', | |
styles: [` | |
.pane{ | |
padding: 1em; | |
} | |
`], | |
template: ` | |
<div [hidden]="!active" class="pane"> | |
<ng-content></ng-content> | |
</div> | |
` | |
}) | |
export class TabComponent { | |
@Input('tabTitle') title: string; | |
@Input() active = false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment