Coder Social home page Coder Social logo

polymerel / firebase-nest Goto Github PK

View Code? Open in Web Editor NEW
7.0 7.0 1.0 88 KB

polymerfire based util to construct nested and lookup datastructure

Home Page: https://beta.webcomponents.org/element/polymerEl/firebase-nest

License: MIT License

HTML 100.00%

firebase-nest's People

Contributors

anishkny avatar christophe-g avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

anishkny

firebase-nest's Issues

Sorting & Getting Keys

Suppose you have a series of "friends" (basically bookmarked users as shown below). How do you sort those users? I tried providing the dom-repeat template with a comparator but that doesn't work.

<firebase-auth app-name="myapp" user="{{user}}"></firebase-auth>
        <firebase-nest app-name="myapp" path="/user-contact/[[user.uid]]" data="{{data}}" allow-sync="true">
            <template is="dom-repeat" items="[[data]]" as="contact" sort="_contactSorter">
            <firebase-value app-name="myapp" value="{{contact}}" key="$key" data="{{contactData}}" path="/users/[[contact.$key]]" ></firebase-value>
            <ver-contact-card class="card" id="[[contact.$key]]" model="{{contact}}"></ver-contact-card>
            </template>
        </firebase-nest>

The other problem I have with the above code, is that I can't seem to get the key for each contact. It always comes back "undefined" which is really strange given that you have to have the contact.$key in order to do the lookup query. The query returns the other user data just fine, but not the key.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.