In order to solve this one, chat messages each need to be assigned a view model and its activateListeners must be invoked.
On that view model, a view model collection may be necessary, in order to be able to register buttons and input components.
The difficulty lies in re-instantiating the view models as necessary (for example, after a page re-load), because at that point the existing view models are purged and the data originally used to create them is no longer easily accessible.
In order to solve this one, chat messages each need to be assigned a view model and its
activateListeners
must be invoked. On that view model, a view model collection may be necessary, in order to be able to register buttons and input components.The difficulty lies in re-instantiating the view models as necessary (for example, after a page re-load), because at that point the existing view models are purged and the data originally used to create them is no longer easily accessible.