$scope.$watch vs ng-change

Hello Guys,

I am starting using ionic and in a video tutorial i could see two ways (until now),
of detect events of change in inputs. The first one is the directive ng-change, that calls
a function to handle the event. The same happens with $scope.$watch, when i set
it into the Controller that the input element is located.

I want to know if they work using the same core, the diferences (if exists) and if they are
eventListeners or something else…

Thanks!

Really not an Ionic specific question.

A few Google searches will be your best bet.

Here’s the really gist though: