This is my HTML form div
<div class="col-lg-2 ">
<select name="limitCount" id="limitCount" ng-model="limitCount"
class="form-control col-md-2 panel-refresh"
ng-change="filterChanged()">
<option value=0>All Records</option>
<option value="1">1 Record</option>
<option value=5 selected>5 Records</option>
<option value=10>10 Records</option>
<option value=25>25 Records</option>
<option value=50 selected>50 Records</option>
<option value=100 selected>100 Records</option>
<option value=200 selected>200 Records</option>
<option value=300 selected>300 Records</option>
<option value=500 selected>500 Records</option>
<option value=1000 selected>1000 Records</option>
</select>
</div>
and this is my controller for this div
$scope.filterChanged = function () {
controller.resetGraph = true;
loadGraphData();
};
Now I want that , when I ever I am selecting from selection dropdown it should show some spinner in the ui(like some loader) until data is fetched from mongodb. please help me as fast as you can . I have to complete this work.write now I am using this, but it is not working at all
$scope.$on('panel-refresh', function (event, id) {
spinnerId = id;
$scope.find();
});