I tried this but it is not working, the parentIndex value is not defined in javascript
_addAttribute: function(e) {
console.log(e.model.parentIndex);
}
I wrote html like this
<paper-button on-tap="_addAttribute(this.parentIndex)">Add</paper-button>
<template id="[[count]]" is="dom-repeat" items="{{parameters}}" index-as="parentIndex" restamp>
You need to remove this.parentIndex
in paper-button
element like:
<paper-button on-tap="_addAttribute">Add</paper-button>
you will still e
property inside the function.
Polymer does not support sending a property to function like JS. Just console log e.model