Return to site

ANGULAR INTERVIEW QUESTION: What is the MVVM architecture?

· ngInterview,fullstack

An architecture MVVM means: Model-View-ViewModel.


broken image



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.


broken image