angularjs – MVW是什么意思?

这里是AngularJS页面内容描述:

AngularJS is what HTML would have been,had it been designed for building web-apps. Declarative templates with data-binding,MVW,MVVM,MVC,dependency injection and great testability story all implemented with pure client-side JavaScript!

那么MVW代表什么?
(考虑MVC,MVVW,MVP等争用,我会猜测“不管”,Model-View-Whatever = P)

它确实为什么,如在 whatever works for you

MVC vs MVVM vs MVP. What a controversial topic that many developers
can spend hours and hours debating and arguing about.

For several years +AngularJS was closer to MVC (or rather one of its
client-side variants),but over time and thanks to many refactorings
and api improvements,it’s now closer to MVVM – the $scope object
could be considered the viewmodel that is being decorated by a
function that we call a Controller.

Being able to categorize a framework and put it into one of the MV*
buckets has some advantages. It can help developers get more
comfortable with its apis by making it easier to create a mental model
that represents the application that is being built with the
framework. It can also help to establish terminology that is used by
developers.

Having said,I’d rather see developers build kick-ass apps that are
well-designed and follow separation of concerns,than see them waste
time arguing about MV* nonsense. And for this reason,I hereby declare
AngularJS to be MVW framework – Model-View-Whatever. Where Whatever
stands for “whatever works for you”
.

Angular gives you a lot of flexibility to nicely separate presentation logic from business logic and presentation state. Please use it fuel your productivity and application maintainability rather than heated discussions about things that at the end of the day don’t matter that much.

相关文章

AngularJS 是一个JavaScript 框架。它可通过 注:建议把脚本放在 元素的底部。这会提高网页加载速度,因...
angluarjs中页面初始化的时候会出现语法{{}}在页面中问题,也即是页面闪烁问题。出现这个的原因是:由于...
AngularJS 通过被称为指令的新属性来扩展 HTML。AngularJS 指令AngularJS 指令是扩展的 HTML 属性,带有...
AngularJS 使用表达式把数据绑定到 HTML。AngularJS 表达式AngularJS 表达式写在双大括号内:{{ expres...
ng-repeat 指令可以完美的显示表格。在表格中显示数据 {{ x.Name }} {{ x.Country }} 使用 CSS 样式为了...
$http是 AngularJS 中的一个核心服务,用于读取远程服务器的数据。读取 JSON 文件下是存储在web服务器上...