 <p>change below code</p> <pre><code> $http.get('http://localhost/json/search.php', { params: searchkeyword }, </code></pre> <p>to </p> <pre><code> $http.get('http://localhost/json/search.php', { params: $scope.searchkeyword }, </code></pre>