简体   繁体   中英

Angular One time binding still has watchers on it

I used a simple AngularJS interpolation with one-time binding. The code works as expected and any further changes to that scope variable are not reflecting. However, when I was checking the performance of my application using Batarang (Chrome extension), I observed that there are still watchers left on that interpolation

I'm not sure if I really achieved any performance gain using one-time binding.

I came across several hints in the web, stating that Batarang would not work with one time bindings. Therefore I deinstalled Batarang and used angular watchers instead (for angular 1.3.x), worked like a charm.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM