Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

firebase-element needs more demo code #85

Open
arthurevans opened this issue Nov 6, 2015 · 4 comments
Open

firebase-element needs more demo code #85

arthurevans opened this issue Nov 6, 2015 · 4 comments
Assignees

Comments

@arthurevans
Copy link

From @devAtPolydeals on June 17, 2015 23:58

Can you provide a demo for firebase-element regards to how to add/remove data from firebase? I tried it based on the docs but it didn't work.

Copied from original issue: Polymer/old-docs-site#1202

@MeTaNoV
Copy link
Contributor

MeTaNoV commented Dec 15, 2015

@arthurevans status? :)

@cdata cdata self-assigned this Dec 15, 2015
@cdata
Copy link
Contributor

cdata commented Dec 15, 2015

I will take a look.

@devAtPolydeals
Copy link

👍

@jfrazzano
Copy link

Have a firebase related question; not sure correct place to ask it.
Question related to instances and array loads.

Have a word array loaded from firebase into a passage holder in ready using
on child added. The word array is saved as "passageArray".

Passage display has two of the same custom element: single column display.

"passageArray" is bound in passage display to "theContent" in each of the
single column display elements.

The element combination displays a numbered reading column in one or two
columns depending on container width screen height and device type.

Because passage display is contained in our splitter which is contained in
an on track resize able width drawer; it is necessary based on user
preferences to show or hide one column. Similarly, we "move" words between
the columns for balance and to create complete lines at end of column one.
Likewise we renumber the column line numbers based on the dynamic new
column heights

All this works great if we throw one passage display on the index with
"passageArray" as say passage 1. If however we throw two HTML passage
array elements on the page only one instance takes passageArray as its feed
to a Dom repeat.

We tried a firebase collection in single column display. Filed column one
of one passage filled two of another.

Failed with four instances.

We tried factory implementing passage display which had two single cold
displays in it. Loaded the passage in one column not in two.

Line numbers failed. Line numbers are created by a for loop in a function
in a property of single column display so each instance should always get
them.

The surrounding content in passage display not linked the firebase array
loads and moves according to a column switch.

We tried an es6 version. Eventually had instance problems.

We did a two column one column switch where different elements were used.
We collapsed at four instances.

We can work around with factory implementation and database repetition I
think. But are stumped on why the array won't load on holder Elena instance
2+

We tried a dummy property and then a computer property for passage array.
No luck.

Sorry to ask question and will gladly send code. Only been coding for 5-6
months so this is likely a rube question, but after 5 weeks and running it
by senior people no one gets why no array load.

Any idea?

Thanks jason

On Tuesday, December 15, 2015, Pascal Gula <[email protected]
javascript:_e(%7B%7D,'cvml','[email protected]');> wrote:

@arthurevans https://github.com/arthurevans status? :)


Reply to this email directly or view it on GitHub
#85 (comment)
.


Jason C. Frazzano Esq.
Founder and Master Coach, Focused Coaching
Stanford University, B.A. M.A., with honors and distinction
Columbia Law School, J.D., Stone Scholar
www.focusedcoaching.com
[email protected]
[email protected]
office: 732-671-1834

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants