Skip to content

PolymerEl/firebase-nest

Repository files navigation

Build Status Published on webcomponents.org

<firebase-nest>

polymerfire based util to construct firebase nested and lookup datastructure

Please note that this component relies on yet unmerged PR to polymerfire, mainly https://github.com/firebase/polymerfire#234 (but also https://github.com/firebase/polymerfire#230 for performance and https://github.com/firebase/polymerfire#235). Those are merged under https://github.com/christophe-g/polymerfire#dev.

Example Usage:

This example first fetch all items under /countryList, and then add the code value lookup located at /countryNames/[[item.$key]]/country-code.

  <firebase-app  auth-domain="pre-ignition-meta.firebaseapp.com" database-url="https://pre-ignition-meta.firebaseio.com/" api-key="AIzaSyAbLJ5nMHaFS_YXioay8b28RnV43JvoEms">
  </firebase-app>
  <firebase-nest path="/countryList" data="{{data}}">
    <template is="dom-repeat" items="[[data]]">
      <firebase-value key="code" data="[[item]]" path="/countryNames/[[item.$key]]/country-code"></firebase-value>
    </template>
  </firebase-nest>

About

polymerfire based util to construct nested and lookup datastructure

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages