I want to databind a settings
object to deep links in my Firebase via a firebase-document
element as follows:
<firebase-document location="<my-firebase>/users/uid/settings"
data="{{settings}}"</firebase-document>
...
<paper-input label="Name" value="{{settings.name}}"></paper-input>
<paper-input label="Email" value="{{settings.email}}"></paper-input>
...
settings: {
type: Object,
notify: true,
value: {},
...
When I enter values in the paper-input
fields in my app for name
and email
, I expect to see the Firebase values update. But, instead, they do not update.
What is the best-practice method to accomplish this deep-link databinding?
Edit
I just noticed there are 35 open issues with the firebase-element
and this codelab appears to bypass using it for the same reasons. If the element isn't fully ready yet, please just state that. Also, the imports seem unusual based on the language here:
Components that want to use firebase should depend on firebase-element and import firebase.html to be safe from library duplication. Such components need not use Polymer or firebase-element, but we put the import and the element in one package for convenience.
It's hard to understand what the above paragraph is trying to say. So an example would help.