curt curt - 11 months ago 64
Dart Question

Assigning a variable value to a paper-item

I'm trying to assign a object id to a list item so that I can look it up when it's selected. There is an example here that uses a literal. It also works for me. This code doesn't set the value:

<paper-dropdown-menu label="Style">
<paper-listbox class="dropdown-content" attr-for-selected="value" selected="2">
<paper-item *ngFor="let style of styles" value="{{ }}">
{{ }}

If I code
, it appears when I inspect in the browser. If it's set as above, nothing appears, not even an empty value. I've also tried creating String
in the Angular component and using
value="{{ test }}"
. It also does not appear.

Answer Source

If this doesn't work, then it might be a timing issue: