document.querySelector("paper-input-nostyle").myarray.pop();
document.querySelector("paper-input-nostyle").myarray.push("c");
extractInstanceAt: function(index) { ... instance.appendChild(parent.removeChild(node)); ...
Thanks, //Techar
<script src="http://.../bower_components/platform/platform.js" type="text/javascript"></script>
<link rel="import" href="http://.../bower_components/polymer/polymer.html">
<link rel="import" href="http://.../bower_components/core-input/core-input.html">
<link rel="import" href="http://.../bower_components/paper-input/paper-input.html">
<polymer-element name="paper-input-nostyle">
<style>
paper-input-nostyle /deep/ #underlineContainer{
margin-top: -18px;
}
paper-input-nostyle /deep/ #error{
background-color: gold;
}
</style>
<template>
<template repeat="{{ value in myarray }}">
<div>
<paper-input value="{{value}}" required="true" error="Enter a value"></paper-input>
</div>
<content></content>
</template>
</template>
<script>
Polymer({
ready: function () {
this.myarray = ["1", "", "2"];
}
});
</script>
</polymer-element>To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/5dddd478-eae3-43a7-b9be-74be4efce4c4%40googlegroups.com.
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 polymer-dev...@googlegroups.com.