Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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