repat="{{item in items_array}}"
This doesn't have meaning to polymer...toy probably want this to be
items=....
On Mar 18, 2017 15:28, <[email protected]> wrote:
> My first post asking for help, so please be patient with a newbie ..
>
> Why doesn't this work? The console.log shows that data is being returned
> from the database.
> Nothing show up in the <paper-item dropdown.
>
>
>
> code..........................
>
> <dropdown-Payee></dropdown-Payee>
>
>
> <dom-module id="dropdown-Payee">
>
> <template>
>
> <paper-dropdown-menu label="Pay to the
> Order Of :" style="width:375px;margin-top:-5px">
>
> <paper-listbox
> class="dropdown-content" id="ddlPayTo">
>
> <template is="dom-repeat"
> repat="{{item in items_array}}">
> <paper-item
> name="{{item.pName}}">{{item.pName}}</paper-item>
> </template>
>
> </paper-listbox>
>
> </paper-dropdown-menu>
>
> </template>
>
>
> <script>
> Polymer({
> is: "dropdown-Payee",
> ready: function () {
> $.ajax({
> type: "POST",
> url:
> "PayeeService.asmx/GetPayees",
> data: "",
> contentType:
> "application/json; charset=utf-8",
> datatype: "json",
> success: function (data) {
> var items_array =
> data.d;
>
> console.log(items_array);
> }
> });
> }
> });
> </script>
>
> </dom-module>
>
> Follow Polymer on Google+: plus.google.com/107187849809354688692
> ---
> You received this message because you are subscribed to the Google Groups
> "Polymer" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/polymer-dev/edd07573-b814-44db-814b-adf8960a0e33%40googlegroups.com
> <https://groups.google.com/d/msgid/polymer-dev/edd07573-b814-44db-814b-adf8960a0e33%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
Follow Polymer on Google+: plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups
"Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/polymer-dev/CADNgbTEw1R-unQgeCoUHG1y78oj5auEx%3D1r4Pdr3_Hy9hktZzQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.