Questions tagged [polymerfire]

Polymer Web Components for use with the Firebase 3.x API.

Contains four elements <firebase-app>, <firebase-auth>, <firebase-document> and <firebase-query>.

Install with the following CLI
bower install --save firebase/polymerfire

Source code hosted on Github at https://github.com/firebase/polymerfire

121 questions
2
votes
1 answer

When using Polymerfire and anonymous login, there is no data in firebase-query object

I want to create a website using Firebase and Polymer. There is no need for login (if changed in the Firebase console.firebase.google.com). Here are the database rules: { "rules": { ".read": "true", ".write": "auth != null" } } This…
2
votes
2 answers

Polymer 1.x + Firebase 2.x: How to push or put data to Firebase using Polymerfire?

Using Polymerfire, I want to add new nodes to a Firebase without overwriting data. (I call this push or put behavior.) In other words. I want to start with this: State A my-app | - emails | + email1@example,com +…
2
votes
1 answer

app-indexeddb-mirror with Polymerfire

I built a simple page that has multiple tabs. Each tab loads a feed (collection/list) of articles from Firebase and renders cards on the page. Everything works as I wanted until I tried to persist the visited feeds into indexeddb with…
2
votes
1 answer

Wrong length of array, empty row on dom-repeat in Polymer

I'm trying to retrieve Firebase data with Polymer Fire. When I look in the console it's returning two objects, however the length of the array is three. When I'm trying to execute a dom-repeat I'm successfully printing two filled in rows but also…
Rover
  • 387
  • 4
  • 14
2
votes
2 answers

polymerfire/firebase-query transaction complete event

Very new to Polymer and Polymerfire. I couldn't find an answer here so hoping I can get help here. The basic question I have is "how do I work with the data that polymerfire/firebase-query sends?" Note I'm using polymerfire version 0.9.4, and…
2
votes
1 answer

Listen for firebase-document synced

How do you know when the Polymerfire firebase-document element is synced? To be specific the firebase-document binds with an object via its data attribute. The value of this object goes from undefined --> { } --> {actual persisted data}. How can…
Marc M.
  • 3,631
  • 4
  • 32
  • 53
1
vote
0 answers

firebase is not working with with polymer 3.0

I was using polymerfire with polymer 2.0. However, then I decided to move to polymer 3.0. I tried to use this element https://www.npmjs.com/package/polymerfire3. But it doesn't work. It kept on giving an error Cannot read property…
1
vote
1 answer

Locally save data using firestore and sync later

I am facing an issue integrating the offline behavior of google firestore into my polymer application. I have created an element to preform all the database operation with firestore. I have initialized the connection in the constructor and below is…
1
vote
1 answer

Instruct paper-dialog-scrollable to scroll to bottom

I have a paper-dialog-scrollable which is filled with a dom-repeat from a firebase-query. Everything works fine, except paper-dialog-scrollable doesn't scroll to the bottom when firebase adds an entry to the array. I managed to set a callback…
1
vote
0 answers

How to Query for a Array of Child Keys in Firebase

Lets say i have this Data Structure: { "posts": { "-KmRZyki4Z9I4oKEy5aD" : { "data1": "titel", "data2": "more text" }, "-KmRZyki4Z9I4oKEy5aD" : { "data1": "other titel", "data2": "more text text text" }, …
Chwzr Lee
  • 21
  • 5
1
vote
1 answer

What is the deployment dependencies of cloud functions vs firebase app in microservice style of development?

I've a project with polymer 2.0 web app with polymerfire and published to firebase hosting using firebase deploy I've another project with a cloud function that acts on database trigger, and deployed it using firebase deploy --only…
Phani
  • 1,851
  • 2
  • 15
  • 28
1
vote
1 answer

How to prevent firebase-query element to updating the data

I am using polymer and firebase to create a web app. To get a list in the database, I am using the "firebase-query" element of polymerfire. Now, the list of items I am getting from the database is posts that people are posting on my app. Now I have…
dshukertjr
  • 15,244
  • 11
  • 57
  • 94
1
vote
1 answer

Call external method from this.$ in polymer

I am new to polymer and I have a few problems. I have the following code polymer code for my polymerfire registration page. Polymer({ is: 'my-register', properties: { message: { type: String, …
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

Polymerfire Firebase App API Key Environment Variable

How do I handle my Firebase API key in a production application? I have the following component: I'm using the Polymer Starter Kit…
1
2
3
8 9