angularjs - How to force angular temporarily unwatch variable? -
i have articles json. when event happens, need make multiple slicing of it. every single slice force update html, undesired me. angular stop watching variable, "fancy" changes, , tell angular start watching articles json again. possible?
here fiddle:
i have found such method, unbinds watch forever , not find how rebind again:
var myevent = $scope.$on('someevents', handlesomeevent); myevent() ; // unbinds event
Comments
Post a Comment