UNPKG

ng2-bootstrap-base-modified

Version:

Native Angular Bootstrap Components Typeahead modified

14 lines (10 loc) 423 B
import { Directive, TemplateRef } from '@angular/core'; import { TabDirective } from './tab.directive'; /** Should be used to mark <template> element as a template for tab heading */ @Directive({selector: '[tabHeading]'}) export class TabHeadingDirective { public templateRef:TemplateRef<any>; public constructor(templateRef:TemplateRef<any>, tab:TabDirective) { tab.headingRef = templateRef; } }