I am using polymer framework for my project in which i'm declaring a function callback in properties and trying to call it from another function showTargetColorDialog() .But on accessing it i'm getting an error
Uncaught TypeError: this.callback is not a functionPlease have a look into this.
Polymer({
is: "parent-dom",
properties: {
people: {
type: String,
value: "df"
},
item: {
type: String,
value: "asdf",
notify: true
},
callback: {
type: Object,
value: function(index) {
console.log("Inside callback function");
}
},
},
showTargetColorDialog: function(e) {
this.callback("sadf");
}
});