Skip to content

Tabs throw errors with Alpha 7 Angular RC 5 #978

Closed
@naveedahmed1

Description

@naveedahmed1

Hi,

After upgrading to Angular 2 RC 5 and Material 2 Alpha 5, the components using tabs through the below errors on browser console (though there aren't any compilation errors when compiling in VS 2015):

"Template parse errors:
Can't bind to 'portalHost' since it isn't a known property of 'template'. ("ex == i" [class.md-active]="selectedIndex == i" (click)="focusIndex = selectedIndex = i"> <template [ERROR ->][portalHost]="tab.label"></template> </div> <md-ink-bar></md-ink-bar> </div> <div class="md-tab-body-"): MdTabGroup@0:418
Property binding portalHost not used by any directive on an embedded template. Make sure that the property name is spelled correctly and all directives are listed in the "directives" section. ("electedIndex == i" [class.md-active]="selectedIndex == i" (click)="focusIndex = selectedIndex = i"> [ERROR ->]<template [portalHost]="tab.label"></template> </div> <md-ink-bar></md-ink-bar> </div> <div class="md"): MdTabGroup@0:408
Can't bind to 'portalHost' since it isn't a known property of 'template'. (" == i" [attr.aria-labelledby]="_getTabLabelId(i)"> <template [ngIf]="selectedIndex == i"> <template [ERROR ->][portalHost]="tab.content"></template> </template> </div> </div> "): MdTabGroup@0:770
Property binding portalHost not used by any directive on an embedded template. Make sure that the property name is spelled correctly and all directives are listed in the "directives" section. ("ectedIndex == i" [attr.aria-labelledby]="_getTabLabelId(i)"> <template [ngIf]="selectedIndex == i"> [ERROR ->]<template [portalHost]="tab.content"></template> </template> </div> </div> "): MdTabGroup@0:760"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      close