view model

From Wiktionary, the free dictionary
Jump to navigation Jump to search

English[edit]

English Wikipedia has an article on:
Wikipedia

Noun[edit]

view model (plural view models)

  1. (software engineering) A framework that defines a coherent set of views to be used in the construction of an enterprise architecture, software architecture, or system architecture.
    Synonym: viewpoints framework
  2. (programming) An abstraction of a view, especially in the context of the MVVM architectural pattern.
    • 2018, Reto Meier, Ian Lake, Professional Android, John Wiley & Sons, →ISBN, page 248:
      View Models and headless Fragments provide two such mechanisms that ensure data is persisted across configuration changes, while also ensuring that your Activity or Fragment UI can be updated without risk of memory leaks.
    • 2022, Damodar Lohani, Taking Flutter to the Web [] , Packt Publishing Ltd, →ISBN, page 79:
      Once the view model has data requested by the user's event, it notifies and updates the view.