ng-metamagic-extensions
Version:
[](https://badge.fury.io/js/ng-metamagic-extensions) []() [ • 562 B
text/typescript
import {Component, ContentChild, Input, OnInit} from '@angular/core';
({
selector: 'tab',
template: `
<div role="tabpanel" class="tab-pane active" [attr.id]="elementId">
<ng-content *ngIf="active"></ng-content>
</div>
`
})
export class TabComponent implements OnInit {
() title: string;
() active = false;
() disabled = false;
() icon : string;
elementId : string;
constructor() {
this.elementId = 'tab-pill'+Math.floor(Math.random() * 90000) + 10000;;
}
ngOnInit() {
}
}