Angular $watch | returning the item from function

后端 未结 4 1481
借酒劲吻你
借酒劲吻你 2021-01-13 11:03

I\'m interested to find out why i always have to do this

$scope.$watch( function() {
   return $scope.someData;
}, function( value ) {
   console.log( value         


        
4条回答
提交回复
热议问题