[英]Object.observe instead of dirty checking with AngularJS 1.x
Is there a way to use Object.observe
instead of the dirty checking in AngularJS 1.x, if supported by the browser? 如果浏览器支持,是否可以使用
Object.observe
代替AngularJS 1.x中的脏检查? This could significantly increase the performance. 这可以显着提高性能。
Object.observe
is currently supported at least by Google Chrome: http://kangax.github.io/compat-table/es7/ 目前Google Chrome至少支持
Object.observe
: http : Object.observe
Currently there is no way of doing this. 当前尚无此方法。 It's in the long term plan for Angular: http://ng-learn.org/2014/03/AngularJS-2-Status-Preview/#change_detection
在Angular的长期计划中: http : //ng-learn.org/2014/03/AngularJS-2-Status-Preview/#change_detection
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.