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 - ScrollTo Effect (href to div) -

javascript - ng-class not responding to change in model in Angular? -

javascript - document.registerElement extending HTMLInputElement prototype while using custom tag name to avoid implicit browser style -