Skip to content
This repository was archived by the owner on Oct 27, 2024. It is now read-only.

Latest commit

 

History

History
9 lines (6 loc) · 356 Bytes

File metadata and controls

9 lines (6 loc) · 356 Bytes

Continuous redrawing of views

Problem

You'd like to redraw your views every few seconds/minutes e.G. to update relative timestamps (like on twitter.com).

Solution

Have a global pulse attribute in your application that you're incrementing inside a setInterval and let the views bind the values to be refreshed to that attribute.

Discussion