firebase-element icon indicating copy to clipboard operation
firebase-element copied to clipboard

When do you think you should be ready for production?

Open marcus7777 opened this issue 10 years ago • 5 comments
trafficstars

I've been struggling to get the firebase element working for about 6 months now and I'm still struggling sometimes just writing data to new location or knowing whether to use collection or document it's still confusing. I got Scott miles to help me out at the polymer conference and it seem to be working then and now I'm back home and I still have the same problem. I'm thinking at the moment I should write my JavaScriptAPI from firebase directly and not try to use this element is that right?

marcus7777 avatar Sep 18 '15 09:09 marcus7777

:+1: Amen to this my friend....

devAtPolydeals avatar Sep 18 '15 17:09 devAtPolydeals

demo http://jsbin.com/tufeva/edit?html,console,output

marcus7777 avatar Sep 21 '15 12:09 marcus7777

Agreed, the docs for these elements could definitely be better but there are a couple of things wrong with your bin:

  • you have a dom-module and import defined outside of your <html>
  • you should bind the input to {{data.hi::input}}
  • firebase-document has a location property. Not a url property.
  • your demo will redefine data.hi on every page load. I think you probably want to use the value if one exists in FB...?

http://jsbin.com/rocelexuya/edit?html,output is more of what you want, although still not perfect. I'm no FB expert.

ebidel avatar Nov 02 '15 22:11 ebidel

/sub +1 for a better documentation!!!

GeoloeG-IsT avatar Dec 15 '15 13:12 GeoloeG-IsT

I will take a look.

cdata avatar Dec 15 '15 18:12 cdata