/** * A single tab page. It renders the passed template * via the @Input properties by using the ngTemplateOutlet * and ngTemplateOutletContext directives. */ import { Component, Input } from '@angular/core'; @Component({ selector: 'my-tab', // styles: [ // ` // .pane{ // padding: 1em; // } // ` // ], template: `
` }) export class TabComponent { @Input('tabTitle') title: string; @Input('tabNumber') num: number; @Input('statistics') statistics: boolean = false; @Input('tabId') tabId: string; @Input() active = false; }