The content of this page are summarized from Mark Newman’s lecture notes.
Data Model
A data model is something that:
- Does not have a UI
- Represents an Entity within the system, including data and operations
For example, for Tour of Heroes:
- Hero:
- Name
- Powers
- functions to retrieve and modify these
- HeroManager
- The list of Heroes
- functions to retrieve and modify these
Manager Pattern is a class that curates (creates, provides access, deletes) a collection.
1 | export class Hero { |
- HeroManager Model
1 |
|