I don't see where your function 'test()' actually returns anything. test()
just instantiates a firebase class and registers an event handler for it,
but that doesn't cause test() to return a value.

As a debug step, on the first line of the function 'test()', put 'return
'hello world';' and see if that works.

If that does work, then I think you essentially need to change the way
you're using firebase. I recommend you take a look at the firebase html
element :

<
https://elements.polymer-project.org/elements/firebase-element?active=firebase-collection
<https://github.com/googlewebcomponents/firebase-element>>

and bind to that directly.

Hope this helps.

Max.

On Thu, 8 Oct 2015 at 21:17 Fabio Paniconi <[email protected]> wrote:

> Did ask same question on stack
> http://stackoverflow.com/questions/33002056/how-to-return-data-from-a-function-inside-a-polymer-dom-module
> and stack chat, but no one could help yet.
>
> Any help is appreciated, thanks.
>
> Follow Polymer on Google+: plus.google.com/107187849809354688692
> ---
> You received this message because you are subscribed to the Google Groups
> "Polymer" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/polymer-dev/f849644c-aeed-4c7c-a792-f7de11b8fbb6%40googlegroups.com
> <https://groups.google.com/d/msgid/polymer-dev/f849644c-aeed-4c7c-a792-f7de11b8fbb6%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

Follow Polymer on Google+: plus.google.com/107187849809354688692
--- 
You received this message because you are subscribed to the Google Groups 
"Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/polymer-dev/CAMZCrPig29FS6EcgYZXK2G92tuxc1fFRv7-g0CijLAvH%3DO5KqA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to