Skip to content

Commit b16becd

Browse files
Illia Velichkoparlough
andauthored
Use consistent terminology around MVVM (#11647)
MVVM's explanation is linked to source from [Wiki](https://en.wikipedia.org/wiki/Model–view–viewmodel), where mentioned that MVVM is an **architectural pattern**, not **design pattern**. To be consistent, let's update that in file. --------- Co-authored-by: Parker Lougheed <[email protected]>
1 parent 3e29436 commit b16becd

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/content/app-architecture/guide.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,17 @@ This guide recommends you split your application into the following components:
4242

4343
### MVVM
4444

45-
If you've encountered the [Model-View-ViewModel design pattern][] (MVVM),
46-
this will be familiar. MVVM is a design pattern that separates a feature of an
47-
application into three parts:
45+
If you've encountered the [Model-View-ViewModel architectural pattern][] (MVVM),
46+
this will be familiar.
47+
MVVM is an architectural pattern that separates a
48+
feature of an application into three parts:
4849
the `Model`, the `ViewModel` and the `View`.
4950
Views and view models make up the UI layer of an application.
5051
Repositories and services represent the data of an application,
5152
or the model layer of MVVM.
5253
Each of these components is defined in the next section.
5354

54-
<img src='/assets/images/docs/app-architecture/guide/mvvm-intro-with-layers.png' alt="MVVM design pattern">
55+
<img src='/assets/images/docs/app-architecture/guide/mvvm-intro-with-layers.png' alt="MVVM architectural pattern">
5556

5657
Every feature in an application will contain one view to describe the UI and
5758
one view model to handle logic,
@@ -76,6 +77,8 @@ The domain layer contains additional components often called *interactors* or
7677
*use-cases*. The domain layer is covered later in this guide.
7778
:::
7879

80+
[Model-View-ViewModel architectural pattern]: https://en.wikipedia.org/wiki/Model–view–viewmodel
81+
7982
## UI layer
8083

8184
An application's UI layer is responsible for interacting with the user.
@@ -338,7 +341,6 @@ This approach is flexible and extendable,
338341
but it requires greater diligence to maintain order.
339342

340343
[Separation-of-concerns]: https://en.wikipedia.org/wiki/Separation_of_concerns
341-
[Model-View-ViewModel design pattern]: https://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93viewmodel
342344
[command pattern]: https://en.wikipedia.org/wiki/Command_pattern
343345
[Repository]: https://martinfowler.com/eaaCatalog/repository.html
344346

0 commit comments

Comments
 (0)