Wednesday, 7 August 2013

Angularjs $watch provides the latest input even when all the information was deleted

Angularjs $watch provides the latest input even when all the information
was deleted

Have any way around this? Is there a better solution? Simulation:
http://plnkr.co/edit/2vRT8O?p=preview
Context: In my case the inputs are used as filters, and the information
entered by the user will be used in searches. The $ watches are used to
capture this information and move to a service which in turn passes into a
second controller.

No comments:

Post a Comment