I am using AngularJS, and when I use http call, the menu disappears if the request returns 404 not found.
When the http call is ok, every thing works fine.
this is my code
this.fetchList = function () {
var url = '/api/getlistmanager';
return $http.get(url).then(function (response) {
return response.data;
}).catch(function (response) {
if(response.status==404)
response.status=500;
return response.status;
}).finally(function () {
;
});
};
Any idea please for catching this type of call without blocking the menu?
thanks for help