由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - is dirty checking better than change listen ers
相关主题
AngularJS 和 BootStrap学angular js有哪些有用的书?
angular 的ui.router 配合REST 很强大,感觉AngularJS 2.0有点作妖儿啊
angular2太好了有人用百度的echart吗,github七千星
AngularJS 怎么样?zz: Is Angular 2.0 Worth It
meteor 1.0 发布了,是来给AngularJS 2.0掘墓吧java script哪个framework比较好用?
雪地跪问各位大牛,javascript 客户端谁家强?现在来看backbone和angular哪个更有前途呢?
现在学front end framework的话哪个最好?angular是否淘汰jquery了
有没有用AngularJS的大牛简单的web app用什么语言?
相关话题的讨论汇总
话题: bindings话题: dom话题: select话题: using话题: widgets
进入Programming版参与讨论
1 (共1页)
l**********n
发帖数: 8443
1
Consider, for example, a combobox where you can type text to filter the
available options. This sort of control could have ~150 items and still be
highly usable. If it has some extra feature (for example a specific class on
the currently selected option) you start to get 3-5 bindings per option.
Put three of these widgets on a page (e.g. one to select a country, the
other to select a city in said country, and the third to select a hotel) and
you are somewhere between 1000 and 2000 bindings already.
Or consider a data-grid in a corporate web application. 50 rows per page is
not unreasonable, each of which could have 10-20 columns. If you build this
with ng-repeats, and/or have information in some cells which uses some
bindings, you could be approaching 2000 bindings with this grid alone.
I find this to be a huge problem when working with AngularJS, and the only
solution I've been able to find so far is to construct widgets without using
two-way binding, instead using ngOnce, deregistering watchers and similar
tricks, or construct directives which builds the DOM with jQuery and DOM
manipulation. I feel this defeats the purpose of using Angular in the first
place.
1 (共1页)
进入Programming版参与讨论
相关主题
简单的web app用什么语言?meteor 1.0 发布了,是来给AngularJS 2.0掘墓吧
GWT, jquery, AngularJS or Sencha?雪地跪问各位大牛,javascript 客户端谁家强?
modular pattern已经在前端很普及了现在学front end framework的话哪个最好?
能用angularJS做前台java做后台吧?有没有用AngularJS的大牛
AngularJS 和 BootStrap学angular js有哪些有用的书?
angular 的ui.router 配合REST 很强大,感觉AngularJS 2.0有点作妖儿啊
angular2太好了有人用百度的echart吗,github七千星
AngularJS 怎么样?zz: Is Angular 2.0 Worth It
相关话题的讨论汇总
话题: bindings话题: dom话题: select话题: using话题: widgets