Return to site

ANGULAR INTERVIEW QUESTION: What is the MVVM architecture?

ยท ngInterview,fullstack

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.

 

All Posts
ร—

Almost doneโ€ฆ

We just sent you an email.ย Please click the link in the email to confirm your subscription!

OK