I am quite a beginner with AngularJS and currently I am working on a web application in Django where I use AngularJS for the frontend part i can say. My problem is that the
The Blank empty option on top of drop down will appear if you have set ng-model
with some value which is not contained in the list options created after the ng-Repeat
.
Now if you consider the original post and remove the ng-model
or set some valid value in ng-model
, it will work fine
or you can set selected first item as
$scope.list_category = $scope.list_categories.data[0].id;