blob: 06dcfa0b164793baf1d9c044dff9c82d2170631f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
import { Component, Input } from '@angular/core';
import { ViewEncapsulation } from '@angular/core';
@Component({
selector: 'tab',
template: `
<div *ngIf="active" class="tab-content">
<ng-content></ng-content>
</div>
`,
encapsulation: ViewEncapsulation.None
})
export class Tab {
@Input('tabTitle') title: string;
@Input() active:boolean = false;
@Input() indication?: number;
}
|