I am trying to save Firebase document using following code:
<dom-module id="my-view1">
<template>
<firebase-document
id="doc"
app-name="manishkpr"
data="{{category}}">
</firebase-document>
<paper-button class="font-normal" on-tap="save">save</paper-button>
</template>
<script>
Polymer({
is: 'my-view1',
save:function (e) {
this.$.doc.save("categories/",{ "name": 's' } );
}
});
</script>
I am getting this error:
Please help me.
this.$.doc.data = {name: 's'};
– Snewedon