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

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -