DEV Community

Discussion on: Making a Single Page App in ye good olde JS (ES6)

Collapse
 
catinhocr profile image
Cato

I realize this might be a bit old now, but still awesome to read and helped me lots. Thanks Rishav.

How would one go about refreshing the view after an event occurs?
Say for example I have a list of items, each with it's own "Delete" button.
The button- event handler is placed in the after_render() section of the view/page. How can I access methods of my Class inside the event handler ? Or what would you "fire" or execute to get the class data to respond to that, update the array and remove it from the view?