$watch not firing on data change
问题 I have a watch setup against the model of a ui-select2 dropdown (from ui-bootstrap). The watch fires on load but not on data changes and I can't figure out why. It isn't the usual problem of not $apply'ing the model change or not using the third parameter for equality comparison (at least from my code). What do I need to do to get it to fire? Here is a plunk demonstrating the issue. 回答1: I fixed some stuff. http://plnkr.co/edit/5Zaln7QT2gETVcGiMdoW?p=preview The JS var myMod = angular.module(