I have the following variable:
var $scope.abc = [{"a":22,"b":"x"},{"a":33,"b":"y"}];
Is it possible to do a watch on this and watch for just the value of the field a
changing?
I have the following variable:
Is it possible to do a watch on this and watch for just the value of the field |
||||
|
Sure. If you want to watch only for value HTML
JS
Demo 1 Plunker Other way, to
Demo 2 Plunker As a side note: You don't need |
|||||||||
|