Lines Matching refs:ViewModel
12 …uses the Model-View-ViewModel (MVVM) architecture. The MVVM divides an application into three core…
15 …ce logic is contained. It dynamically updates the UI by binding the data provided by the ViewModel.
16 - ViewModel: manages UI state and interaction logic. As a bridge between Model and View, ViewModel …
18 …design without paying attention to the UI re-render logic. In addition, ViewModel enables state va…
22 …f ArkUI is the MVVM mode, in which the state variables play the role of ViewModel to re-render the…
31 …ypically, the business component may be associated with the data in the ViewModel of the project a…
32 …ar to built-in components, these components are not associated with the ViewModel data in the appl…
34 **ViewModel**
38 > The differences between the ViewModel data and the Model data are as follows:
42 > ViewModel data provides data used on a page. It may be a part of the service data of the entire a…
54 …ViewModel in real time, causing data changes and UI re-renders. In this case, automatic thread swi…
60 * View cannot directly call data from Model. Instead, use the methods provided by ViewModel to call.
61 * Model data cannot modify the UI directly but notifies the ViewModel to update the data.
65 …er to obtain the upper-layer data. For example, the logic processing at ViewModel cannot depend on…
537 …iable is used to drive the component re-render to refresh the page. The ViewModel data needs to ha…
562 **ViewModel**
566 > The ViewModel layer not only stores data, but also provides data services and processing. Therefo…
568 * The ViewModel layer is the data layer that serves views. Generally, it has two features:
582 > A business component contains ViewModel data. Without ViewModel, the component cannot be executed.
584 > A shared component does not contain ViewModel data. The data required needs to be passed from ext…
598 * ViewModel
612 import { TodoListData } from '../ViewModel/ThingsViewModel'