My html
<input ng-model="query" type="text" placeholder="Search">
My js
.controller('setting', function($scope,$http) {
$scope.query = null;
$scope.$watch("query", function() {
$scope.change();
});
$scope.change = function() {
console.log($scope.query);
};
})
I’ve tested $scope.$watch here : http://jsfiddle.net/m5bLryou/, but not sure why it doesn’t work with ionic.