Skip to content
This repository was archived by the owner on May 19, 2025. It is now read-only.
This repository was archived by the owner on May 19, 2025. It is now read-only.

Populate a table with no child nodes available #354

@HuvraM117

Description

@HuvraM117

Description

Trying to make a table using dom-repeat and there is no depth in the firebase database.
My database looks like so:
Types:
|
User:
|
$key: data

Problem is I want to get that "data" information populated in the table, not the firebase generated $key. Does anyone know how to do that?

Expected outcome

If this is the data:
...$key: Unicorn
...$key: Panda
... $key: Bear

Then the table should have the following as it's contents:
Type: Unicorn
Type: Panda
Type: Bear

Actual outcome

Type: -LIT_K5HE_lHyyj08fw5
Type: -LIT_L2vRyd8uXOP5eTz
Type: -LJ0QHOTfwNIYUwSVsvb
Type: -LJ0QIELSpGKB6XYTJzg

Code


     <ul id="notes">
       <template is="dom-repeat" items="[[data]]">
         <li>
           <div class="content"> Type: [[item]]</div>
           <paper-button id="remove" data="[[item]]" on-click="remove">Remove</paper-button>
         </li>
       </template>
     </ul>

Browsers Affected

  • [X ] Chrome
  • Firefox
  • Safari 9
  • Safari 8
  • Safari 7
  • Edge
  • IE 11
  • IE 10

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