Skip to content

Commit 25a20b5

Browse files
committed
Workaround for ngc issue
1 parent c993f54 commit 25a20b5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/lib/tabs/tab-label.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,14 @@
99
import {Directive, TemplateRef, ViewContainerRef} from '@angular/core';
1010
import {TemplatePortalDirective} from '../core';
1111

12+
/** Workaround for https://github.com/angular/angular/issues/17849 */
13+
export const _MdTabLabelBaseClass = TemplatePortalDirective;
14+
1215
/** Used to flag tab labels for use with the portal directive */
1316
@Directive({
1417
selector: '[md-tab-label], [mat-tab-label], [mdTabLabel], [matTabLabel]',
1518
})
16-
export class MdTabLabel extends TemplatePortalDirective {
19+
export class MdTabLabel extends _MdTabLabelBaseClass {
1720
constructor(templateRef: TemplateRef<any>, viewContainerRef: ViewContainerRef) {
1821
super(templateRef, viewContainerRef);
1922
}

0 commit comments

Comments
 (0)