Angularjs $watch provides the latest input even when all the information was deleted -
have way around this? there better solution? simulation: http://plnkr.co/edit/2vrt8o?p=preview
context: in case inputs used filters, , information entered user used in searches. $ watches used capture information , move service in turn passes second controller.
may enough check if old , new values not equal? this:
if (newvalue != oldvalue) { $scope.bar = newvalue; }
Comments
Post a Comment