我在控制器中使用此功能获取数据:
var fetchStoreItems = function () {
return $http.get('/enterprises/_store').then(function (response) {
$scope.items = response.data;
}, function (errResponse) {
console.error("Error while fetching data")
})
};
它运行良好且速度足够快。但是,如果有很多物品要取怎么办?!我想在获取数据时放置一个微调器。
我怎样才能做到这一点?