Created
June 14, 2018 10:07
-
-
Save rajatgeekyants/b0927c1beea0a893f4df7230fbc922b1 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: 'ngx-tab', | |
styles: [ | |
` | |
.pane { | |
padding: 1em; | |
} | |
`, | |
], | |
template: ` | |
<div [hidden]="!active" class="pane"> | |
<ng-content></ng-content> | |
</div> | |
`, | |
}) | |
export class TabComponent { | |
@Input() tabTitle: string; | |
@Input() active = false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment