Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

can't set and get selected value when binding with ngModel #78

Open
sithwin opened this issue Nov 11, 2016 · 0 comments
Open

can't set and get selected value when binding with ngModel #78

sithwin opened this issue Nov 11, 2016 · 0 comments

Comments

@sithwin
Copy link

sithwin commented Nov 11, 2016

I am trying to use polymer paper-dropdown-menu and paper-listbox. Now I am having problem in binding.

Here is dropdown list:
<select name="singleSelect" [ngModel]="(person | async).department"> <option *ngFor="let x of departments">{{x.name}}</option> </select>

I converted into paper-listbox or paper-dropdown-menu
<paper-listbox #department ngDefaultControl name="department" [ngModel]="(person | async).department" label="department" > <paper-item *ngFor="let x of departments"> {{ x.name }} </paper-item> </paper-listbox>

departments = [{name: 'HR'}, {name: 'IT'}, {name: 'Admin'}, {name: 'Management'}];

I couldn't get and set selected value.

Please help!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant