Open HuvraM117 opened 6 years ago
$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?
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
Type: -LIT_K5HE_lHyyj08fw5 Type: -LIT_L2vRyd8uXOP5eTz Type: -LJ0QHOTfwNIYUwSVsvb Type: -LJ0QIELSpGKB6XYTJzg
<firebase-query id="types" path="/ReportTypes/[[user.displayName]]" data="{{data}}">
<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>
Description
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
<firebase-query id="types" path="/ReportTypes/[[user.displayName]]" data="{{data}}">
Browsers Affected