AngularJS "debounce" for ngBind -


for ngmodel there ngmodeloptions such ng-model-options="{ debounce: 1000 }"

is there similar ngbind or {{}} ?

basically, binding data div element using ng-bind , default behavior of angular.js, data gets updated on div element updated in model. want delay updation or data binding on div whenever data changes in model. such when data changed in model ($scope) change should appear after say, 2 seconds on div element. how make work?

it bad. thinking in terms of updating view, suggested @danpantry, tried delaying value/model updation using timeout because of value got updated milliseconds later , rest taken care angular.js $digest cycles. :)

for example did following:

$timeout(function () {             $rootscope.$apply(function () {                 $rootscope.current.index = idx;             });         }, 100); 

Comments

Popular posts from this blog

tcpdump - How to check if server received packet (acknowledged) -