performance - AngularJS, ng-model slow because other watchers are slow -


i have simple ng-model example:

<input type="checkbox" ng-model="active" /> 

and have watcher like:

<pre>status = <span ng-bind="value()"></span></pre> 

the watcher slow because whatever reason , makes above form element react slow makes interface clumsy.

of course have make effort in optimise bellow bind element point don't need element fast, need form element fast because 1 user putting attention.

so how can make ng-model have priority on other watcher?

to reproduce issue can visit this plunker. check app.js can see method value() has been artificially delayed, can manipulate delay increase effect.


Comments

Popular posts from this blog

javascript - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -

java - Reading data from multiple zip files and combining them to one -