Skip to content

md-error with *ngIf doesn't work #4027

@thisisgit

Description

@thisisgit

Bug, feature request, or proposal:

Bug

What is the expected behavior?

boolean is passed to *ngIf and supposed to switch on when it is true

What is the current behavior?

md-error with *ngIf doesn't work at all. It only responds on predefined directives like required.

What are the steps to reproduce?

<md-input-container> <input mdInput [(ngModel)]="sample" name="sample" (keyup)="validateInput()"> <md-error *ngIf="isError">{{errMsg}}</md-error> </md-input-container>
Validate input on every keyup and set isError to true if the input is invalid.

What is the use-case or motivation for changing an existing behavior?

Which versions of Angular, Material, OS, browsers are affected?

angular 4.0.0, material 2.0.0-beta.3, macOS10.12.4, chrome

Is there anything else we should know?

Metadata

Metadata

Assignees

No one assigned

    Labels

    cannot reproduceThe team is unable to reproduce this issue with the information provided

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions