Event Handling between parent and child page in polymer 1.0

527 views
Skip to first unread message

Sai Roshan Chhetri

unread,
Aug 2, 2015, 6:44:42 PM8/2/15
to Polymer
Can someone clear my doubts on this Stackoverflow question  : http://stackoverflow.com/questions/31777329/event-handling-between-parent-and-child-page-in-polymer-1-0

 have a parent polymer element called parent-page and a child element called child-page.

parent-page calls child page and passes an array with it. for e.g, in parent page:


<child-page items={{itemsArray}}></child-page>

Now, on the basis of certain activity child page fires an event with a new array.

eg, in child page:

this.fire('eventPerformed', newArray);


This array is being listened by the parent page and received with expected values. Now, I want to pass that new array to the child page such that the child-page is rendered according to the new array.

How to achieve it?


Basically I want to recall the child element when the itemsArray changes.

Reply all
Reply to author
Forward
0 new messages