Questions tagged [firebase-polymer]

For questions involving the Polymer library's interface with the Firebase API — typically via the firebase-collection or firebase-document Polymer elements. Many Polymer apps use Firebase as both a static hosting solution as well as a backend (no-SQL) data store.

70 questions
1
vote
1 answer

Is it better to send two requests or one when indexing a Firebase?

My Firebase looks like this: - widgets - abc123abc - key1: val1 - key2: val2 - key3: val3 - ... + abc123abd + ... - widgets-index - abc123abc - timestamp: 1289183274834 - abc123abd - timestamp: 1289183274834 I am…
1
vote
0 answers

Getting Polymerfire (firebase-document) to callback error event?

How do I get firebase-document to callback an error event after a request fails? (Or at least a notification the request has completed so I can imperatively check the response to see if I received the expected data?) For example, if I enter an…
1
vote
1 answer

Why isn't my Polymer app working on Firebase?

This is my first post here and I have to say, Stack Overflow is such an amazing community for devs. I have visited many times over the years and would like to say a big thank you to everyone for joining together and sharing your knowledge! So... I…
1
vote
1 answer

Using firebase-query with Polymerfire?

Before anyone makes a comment about me not trying to figure things out on my own. I have read through those firebase docs (https://firebase.google.com/docs/reference/js/firebase.database.Query) about 3 times today. I also read through the source…
1
vote
0 answers

dom-repeat not updating when path from firebase-query changes

I'm using the firebase-query element which is working at first attempt in setting the path. I then…
1
vote
1 answer

Polymerfire - What is the correct way to update firebase values

what is the correct way to update a firebase value? is it to use firebase-document? I understand that in polymerfire, has been deprecated. However, in https://github.com/PolymerLabs/todo-list, I could simply update the collection like…
1
vote
1 answer

Calling functions within Polymer element

I'm struggling to call functions inside my polymer element. I know that you need to use this.functionName();, and it works. but when I was it in a setTimeout like this: runSoon = setTimeout(this.runNow(), 12000); it runs without waiting. If I write…
Zvi Karp
  • 3,621
  • 3
  • 25
  • 40
1
vote
0 answers

Polymer 1.x: $key throws error when saving to Firebase

I want to save a firebase-document to Firebase. But I encounter the following error. error.log Uncaught (in promise) Error: Firebase.push failed: first argument contains an invalid key ($key) in property 'xxxxxxxxxxxx.items'. Keys must be…
1
vote
2 answers

Syncing a paper-input with firebase using polymer

How is this for a solution for syning the data from a paper input to a firebase database. properties: { teamid: { type: String, value: null }, formid: { type:…
Snewedon
  • 2,410
  • 2
  • 13
  • 27
1
vote
1 answer

Polymerfire - creating data after an event

I'm using the firebase/polymerfire package from bower bower install firebase/polymerfire how can i create some data in the database after a method has been triggered? The document tag looks like it will display and update data. I would like to,…
Snewedon
  • 2,410
  • 2
  • 13
  • 27
1
vote
1 answer

How to install Polymerfire with all dependencies?

I am trying to install and use the Polymerfire element. But, apparently, I have not successfully installed all the dependencies like firebase-sdk, for example. I tried using Bower command pattern used to install the other Polymer…
1
vote
0 answers

How to create or signup user for the first time in firebase

I am using firebase-auth and firebase-document elements in Polymer. I am signed in with "google" as provider. My firebase database is like below: firebase-app-id-location [-]users [-]user1.uid [-]user2.uid So i am planning to create new…
Srikanth
  • 836
  • 10
  • 20
1
vote
2 answers

Polygit doesn't import elements when deployed to firebase

I watched the Polymer Submit which inspired me to build a Web App with Polymer and firebase and to import elements I wanted to use Polygit, so I "wrote" a little code. When I open the index.html file in directly in my browser, it all worked well,…
1
vote
0 answers

How to get max performance getting data using the firebase-element?

When using the firebase-element, what is considered the most effective method? New firebase-element for each location. Using a for loop. New firebase-element for each location ...
Glenn Vandeuren
  • 356
  • 3
  • 14
1
vote
2 answers

How to loop through nested Firebase keys in Polymer

So, I have a Polymer project that is saving to Firebase. My data looks like this: What I'm trying to do is loop through the teams property in the data. Considering Polymer only loops through Arrays right now, this is proving to be pretty…
caseybaggz
  • 107
  • 1
  • 8