My input includes a datalist that is populated by an angular get request as the page loads.
<input list="data" />
<datalist id="data">
<option ng-repeat="item in items" value="{{item.data}}">
</datalist>
The $http
call is straightforward:
$http.get('/items').then(function (response) {
$scope.items = response.data;
})
Although the data appears in the source code, the datalist doesn't display matching options when typing. I realize that the view needs to be updated to align with the model, but calling $scope.$digest()
results in an error.
$rootScope:inprog Action Already In Progress
Trying $scope.$apply()
has no effect. Any suggestions?