Data binding/updating between parent and child using tag in Polymer1.0

后端 未结 2 897
难免孤独
难免孤独 2020-12-18 17:20

I have a slider element that contains list of slides and a img to show hovered slide as shown below. I am binding currentImage between custom

2条回答
  •  春和景丽
    2020-12-18 17:33

    Here is a fork of your current plunkr. I've made two changes to it.

    • Engulfed index.html in dom-bind so that polymer bindings can work.
    • Replaced hard coded value of current-image for phone-carousel with binding, so that it can be updated on-hover

    Hopefully this is what you were looking for.

提交回复
热议问题