class AddChatView : View() { val model: ChatListModel by inject() override val root = button("Add chat") { action { model.chats.add(Chat("New chat")) } } }