liveBook · Manning

MVC model

Also called Model class

An MVC model is the application component that represents application data and associated domain logic, making relevant state and behavior available to other components such as views.

How 2 Manning books explain it

Pro Angular 16

A model class is a class that defines the structure and data properties of an entity in an application's data model.

How it is used
Describes application data through classes such as Product, with further model classes added as features require them.
How deep it goes
Defines entity properties through optional constructor arguments, while leaving data loading and manipulation to separate model parts.
Examples
Uses a Product class with identifier, name, category, description, and price properties, including optional arguments for form-created objects.
What you can do after
Build it from scratch by declaring a TypeScript class with optional constructor properties that describe an entity's data.

Read how Pro Angular 16 explains MVC model →

Spring Start Here, Second Edition

A model is an application object that represents data used by the application and made available for presentation.

How it is used
Represents application data with an object and connects the MVC Model to controller methods and presentation.
How deep it goes
Defines a Comment POJO with two fields; leaves the MVC Model's controller-method role unanswered.
Examples
Uses a Comment object with author and text fields to illustrate modeled application data.
What you can do after
Build it from scratch by defining a Comment POJO with author and text fields.

Read how Spring Start Here, Second Edition explains MVC model →

Also covered in

What to know first

Related concepts

Questions about MVC model

What is MVC model?

An MVC model is the application component that represents application data and associated domain logic, making relevant state and behavior available to other components such as views.

Which Manning books explain MVC model?

Pro Angular 16 and Spring Start Here, Second Edition.

What should I know before learning MVC model?

Manning books that teach MVC model usually introduce HTTP request first.

What is MVC model part of?

MVC model is part of Model–view–controller. Model–view–controller is a software architectural pattern that separates application data and behavior, presentation, and interaction handling into model, view, and controller responsibilities.

What are the parts of MVC model?

MVC model includes InventoryService.

What is MVC model also called?

MVC model is also called Model class.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.