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

Cannot read property 'slice' of undefined on firebase update #1661

Closed
Illuday opened this issue May 29, 2015 · 2 comments
Closed

Cannot read property 'slice' of undefined on firebase update #1661

Illuday opened this issue May 29, 2015 · 2 comments
Assignees

Comments

@Illuday
Copy link

Illuday commented May 29, 2015

Hey! :)

I link my polymer to firebase with this :

<link rel="import" href="../../bower_components/polymer/polymer.html">
<link rel="import" href="../../bower_components/firebase-element/firebase-collection.html"> 

<dom-module id="list-activity">
  <template>
    <firebase-collection
      location="https://glaring-inferno-8584.firebaseio.com/activity"
      data="{{activity}}"></firebase-collection>
    <template is="dom-repeat" items="[[activity]]" as="a">
      <h4>[[a.id]]</h4>
      <span>Title: </span><span>[[a.title]]</span>
    </template>
  </template>
</dom-module>

<script>
  Polymer({
    is: "list-activity"    
  });
</script>

Everything works fine at first display. But when I update a entry of firebase it return in Console :

Uncaught TypeError: Cannot read property 'slice' of undefined     ____    polymer.html:1727

And nothing is update in my html template. However, when I add an entry in firebase, it add to my template without any errors.

@kevinpschaaf
Copy link
Member

This sounds like a <firebase-collection> issue, we'll move this issue to that repo.

@tjsavage
Copy link
Contributor

tjsavage commented Jun 2, 2015

auto-moving this issue to GoogleWebComponents/firebase-element#27 and closing this one

@tjsavage tjsavage closed this as completed Jun 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants