Search code examples
javascriptpolymerpolymer-1.0web-component

input value binding & observer not working in polymer


I tried the code below

<input value="{{input}}">

input property inside javascript Polymer({property: {}})

input: {
    observer: "_input",
    type: String,
    value: "Z"
}

initially <input> show "Z" as its value but input property inside javascript Polymer({property: {}}) is not updating with the change in the <input> & observer is not called

i tried this also but not working

<input bind-value="{{input}}">

How i do this in Polymer-1.0 ?


Solution

  • is="iron-input" & bind-value="{{owner}}" both are required

        <input is="iron-input" bind-value="{{owner}}">
    

    I found it from their doc example