firebase-polymer

Use Firebase-query to get data from an array of ID's

[亡魂溺海] 提交于 2019-12-10 12:18:36
问题 I'm trying to use Polymerfire's firebase-query to retrieve a list of children for each ID in an array. I have and array with three ID's and a firebase-query that looks like: <firebase-query id="teamContacts" path= "{{teamConPath}}" data="{{teamConData}}"></firebase-query> and a couple observers that look like: teamConData: { observer: '_teamConDataChanged' }, teamConPath: { value: '', observer: '_teamConPathChanged' }, _teamConPathChanged: function(newValue, oldValue) { var self = this; if (

How do you nest two of Polymer's firebase-collection elements inside dom-repeat?

坚强是说给别人听的谎言 提交于 2019-12-07 06:33:07
问题 I have a problem of looping two of Polymers firebase-collection elements. With my database structure i first have to check which events the user has access to, then get the information on that event from events. The problem with this code is that when i loop the second firebase-collection the data-binding on "events" will be the same on all that repeats and therefore it will be the same name on every h4. So is there a way of having a unique variable in data="{{ }}". or is there a better way

How do you nest two of Polymer's firebase-collection elements inside dom-repeat?

心已入冬 提交于 2019-12-05 10:08:05
I have a problem of looping two of Polymers firebase-collection elements. With my database structure i first have to check which events the user has access to, then get the information on that event from events. The problem with this code is that when i loop the second firebase-collection the data-binding on "events" will be the same on all that repeats and therefore it will be the same name on every h4. So is there a way of having a unique variable in data="{{ }}". or is there a better way of writing out the data? <firebase-collection data="{{userData}}" location="{{_getCorrectUrl()}}"><

Polymerfire <firebase-app> element crashes app

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-02 16:24:32
问题 I just added the new Polymerfire <firebase-app> element to my (Polymer 1.x + Firebase 3.x) project and it crashed the project. I expected to see the home screen load on localhost but, instead, I just get a blank screen and console error. my-element.html <firebase-app auth-domain="my-app-id.firebaseapp.com" database-url="https://my-app-id.firebaseio.com/" api-key="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"> </firebase-app> The console log reports the following error: Console.log firebase-app

Polymerfire <firebase-app> element crashes app

核能气质少年 提交于 2019-12-02 08:20:44
I just added the new Polymerfire <firebase-app> element to my (Polymer 1.x + Firebase 3.x) project and it crashed the project. I expected to see the home screen load on localhost but, instead, I just get a blank screen and console error. my-element.html <firebase-app auth-domain="my-app-id.firebaseapp.com" database-url="https://my-app-id.firebaseio.com/" api-key="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"> </firebase-app> The console log reports the following error: Console.log firebase-app.html:94 Uncaught ReferenceError: firebase is not defined The relevant line of code (line #94) is the

How to insert data into Firebase using Polymerfire (mutiple nodes + multiple paths)

馋奶兔 提交于 2019-12-01 00:46:11
My use case is that I have an <iron-form> with a single <paper-textarea> field that accepts a string list of email addresses which I parse into an array, then I want to: Store the individual email addresses in my Firebase (for indexing and lookup purposes), at multiple locations (per data fan out technique), with a single write operation (because I don't want to make 100 API calls if the list is that long) and without overwriting any existing data. Specifically, I want to start with State A, as follows: State A my-app | - emails | | | - email1@example,com | |- old: "data" | - email2@example