in Technology by
What is MVVM architecture in Angular?

1 Answer

0 votes
by

MVVM architecture consists of three parts:

1. Model
2. View
3. ViewModel

image


Model contains the structure of an entity. In simple terms it contains data of an object.
View is the visual layer of the application. It displays the data contained inside the Model. In angular terms, this will be the HTML template of a component.

ViewModel is an abstract layer of the application. A viewmodel handles the logic of the application. It manages the data of a model and displays it in the view.
View and ViewModel are connected with data-binding (two-way data-binding in this case). Any change in the view, the viewmodel takes a note and changes the appropriate data inside the model.


 

Related questions

0 votes
    I am using Android Data Binding framework I have suppose an EditText for login form with username as below ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jun 18, 2022 in Education by JackTerrance
0 votes
    At first I made an application that downloads a file from the entered link and displays information about ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 19, 2022 in Education by JackTerrance
0 votes
    I hava a main view, where you have one object and you can change the properties of that object. ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 4, 2022 in Education by JackTerrance
0 votes
    How can i apply MVVM pattern in QtQuick applications? Can anybody give me any sample (simple) code? Thanks ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 18, 2022 in Education by JackTerrance
0 votes
    What is the difference between MVP, MVC and MVVM?...
asked Apr 9, 2021 in Education by JackTerrance
0 votes
    How can you explain view and view model in MVVM?...
asked Apr 8, 2021 in Education by JackTerrance
0 votes
    Microservice Architecture adapts which of the following concept(s)? A. OOPS B. SOA C. Web Service/HTTP D. All the options...
asked Jan 9, 2023 in Technology by JackTerrance
0 votes
    There is no server in the serverless architecture. True False...
asked Sep 15, 2021 in Technology by JackTerrance
0 votes
    What are the features of Android architecture?...
asked Aug 13, 2021 in Technology by JackTerrance
0 votes
    What is the architecture of Flume?...
asked Aug 7, 2021 in Technology by JackTerrance
0 votes
    What is the Apache Pig architecture?...
asked Aug 3, 2021 in Technology by JackTerrance
0 votes
    Which of the following best defines a microservice architecture? 1. An architecture commonly used in functional ... systems based on a loosely coupled component architecture...
asked Jul 25, 2021 in Technology by JackTerrance
0 votes
    How to implement service discovery in microservices architecture?...
asked Jul 24, 2021 in Technology by JackTerrance
0 votes
    What is the difference between Monolithic, SOA and Microservices Architecture?...
asked Jul 23, 2021 in Technology by JackTerrance
...