Return to site

ANGULAR INTERVIEW QUESTION: What is the MVVM architecture?

July 7, 2021

An architecture MVVM means: Model-View-ViewModel.

 

 

 

It is composed of three parts:

 

𝟏) ð“ðĄðž ðĶðĻ𝐝𝐞ðĨ

It represents the data and the business logic of the application.

it is the structure of your project entities (Same as Java beans).

 

ðŸŪ) 𝗧ð—ĩð—ē 𝘃ð—ķð—ē𝘄

It is the visual layer of the application.

The view is composed of the GUI code, in the Angular component HTML template.

 

ðŸŊ) 𝗧ð—ĩð—ē ð—Đð—ķð—ēð˜„ð— ð—žð—ąð—ēð—đ

It is an abstract layer which binds the view and the business logic model.

The ViewModel takes care of pushing the model manipulated data in the view.

It is replaces the controller of the MVC architecture.