8000 Problem populating md-select options when using in reactive forms · Issue #5818 · angular/components · GitHub
[go: up one dir, main page]

Skip to content
Problem populating md-select options when using in reactive forms #5818
Closed
@pantonis

Description

@pantonis
<md-select placeholder="Profile" [formControl]="profilesFormControl">
    <md-option *ngFor="let profile of profiles" [value]="profile"> 
        {{ profile.Name }}
    </md-option>
</md-select>

Following normal select box populates fine:

<select >
    <option [ngValue]="profile" *ngFor="let profile of profiles">
        {{ profile.Name }}
    </option>
</select>

Bug, feature request, or proposal:

Bug

What is the expected behavior?

Successfully populate md-select control

What is the current behavior?

md-select control does not populate whereas If I use normal works just fine. Which versions of Angular, Material, OS, TypeScript, browsers are affected? Angular: 4.2.5 Material: 2.0.0-beta.8 OS: Windows 10 x64 Typescript: 2.3

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

      0