An element wrapper for the Firebase API.
A
<firebase-document>
is a reference to a remote document somewhere on Firebase. The element fetchs a document at a provided location
, and exposes it as an Object that is suitable for deep two-way databinding.
Example:
<firebase-document
location="https://dinosaur-facts.firebaseio.com/dinosaurs"
data="{{dinosaurs}}">
In the above example, if the
dinosaurs
object is data-bound elsewhere via Polymer's data-binding system, changes to the document will be automatically reflected in the remote document and any other clients referencing that document.
data
Object notify
The
data
object mapped to location
.
query
Object notify
Firebase Query object corresponding to
location
.
Polymer.FirebaseQueryBehavior
No comments:
Post a Comment