$io = popen ( '/usr/bin/du -sk ' . $f, 'r' );
$io = popen ( '/usr/bin/du -skm ' . $f, 'r' );
du -skm
app.filter('customFilter', function(){
return function (items, search) {
// отфильтруйте .....
return items;
}
})
ng-repeat="item in catalogItems | customFilter:catalogId "
ng-click="catalogId = -1"
$scope.filterByCategory = function (categoryId) {
var urlString = 'http://staging.test.ru/partnerRegionId=' + $scope.selectedCity;
$http({
url: urlString,
headers: { * },
method: 'GET',
config:{
params:{
categoryId: cateforyId
}
}
}).success(function (data, status, headers, config) {
$scope.catalogItems = data.Items;
});
};
hmvc