import { Directive, TemplateRef } from '@angular/core'; import { TabDirective } from './tab.directive'; /** Should be used to mark element as a template for tab heading */ @Directive({ selector: '[tabHeading]' }) export class TabHeadingDirective { /* tslint:disable-next-line:no-any */ templateRef: TemplateRef; /* tslint:disable-next-line:no-any */ constructor(templateRef: TemplateRef, tab: TabDirective) { tab.headingRef = templateRef; } }