今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
Model-View-ViewModel (MVVM) pattern
- The model view view model pattern is similar than the other two we just explored, and is different only in implementation again. It is also sometimes referred to as MVVC, or model view view controller. But in both cases, it serves the same purpose. The first view is your view which doesn't have any data or logic. It is simply a dumb component, or component without any logic or data. Then you have the second view, model, which holds the logic in a state of the data, and this view model connects to a model. If you would like to see examples of this MVVM pattern, simply develop an architecture applications with React and Angler, and you will see this MVVM approach in action. For example, in React, your application is architectured in stateless components, which are views. Stateful components which hold data and logic, therefore the view model, and then finally the model, is where React typically connects to a back end to…
随堂练习,边学边练
下载课堂讲义。学练结合,紧跟进度,轻松巩固知识。
内容
-
-
-
-
-
(已锁定)
What are structural patterns?55 秒
-
(已锁定)
Module pattern5 分钟 54 秒
-
(已锁定)
Mixins pattern4 分钟 32 秒
-
(已锁定)
Facade pattern1 分钟 43 秒
-
(已锁定)
Flyweight pattern1 分钟 18 秒
-
(已锁定)
Decorator pattern2 分钟 16 秒
-
Model-View-Controller (MVC) pattern1 分钟 21 秒
-
Model-View-Presenter (MVP) pattern1 分钟 17 秒
-
(已锁定)
Model-View-ViewModel (MVVM) pattern1 分钟 25 秒
-
(已锁定)
-
-