Getting value of ng-change field in my angularjs controller
问题 I have this line in my view: <input placeholder="Search" type="text" ng-change="searchChange()" ng-model="mySearch" ng-model-options="{debounce: 1000}"> And then inside my controller I have: angular.module('app.controllers', []) .controller('listViewCtrl', ['$scope', '$stateParams', '$http', function ($scope, $stateParams, $http) { $http.get('http://www.domain.co.uk/api/search.php'). then(function(response) { $scope.food = response.data; }); $scope.searchChange = function() { console.log(