I'm currently experimenting with AngularJS autocomplete using Angucomplete Alt. I've copied the same code and running it on my local host, but unfortunately, no results are being displayed.
When searching for the term 'ssss', an error is thrown.
GET https://api.github.com/search/repositoriessafa 404 (Not Found)
This is the code I am using:
var myApp = angular.module('myApp', ["angucomplete-alt"]);
myApp.controller('TestController', function ($scope, $http) {
});
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.6.9/angular.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/angucomplete-alt/3.0.0/angucomplete-alt.min.js"></script>
<body ng-app="myApp" ng-controller="TestController">
<div angucomplete-alt
id="ex5"
placeholder="Search projects"
pause="500"
selected-object="selectedProject"
remote-url="https://api.github.com/search/repositories"
remote-url-request-formatter="remoteUrlRequestFn"
remote-url-data-field="items"
title-field="name"
description-field="description"
minlength="2"
input-class="form-control form-control-small"
match-class="highlight">
</div>
</body>
Is there anything missing?