Can we create a popup alert that says "Error Contacting Server" when the http request does not receive any response?
.controller('items_ctrl',['$scope','$http',function($scope,$http){
$scope.shop_id=localStorage.getItem("shop_id");
$http.get('http://localhost/myapp/spree/stocks.php').success(function(data){
console.log(JSON.stringify(data));
$scope.item=data;
});
}])