I do the application on angularjs, in passing studying the framework. Essence: in an application on 8 pages, a cross-domain request to the server occurs in this form $http.post('http://mysite/get_users.php?name='+$scope.name+'&nick='+$scope.nick).success(function(data){$scope.users=data;}); the problem is that during a quick transition between pages at some point records stop coming in from the server, although a minute ago I visited this page and saw a lot of records from the database (I look in the debugging panel on the Networks tab in the browser and see the server response "[] "). Who can explain what the problem is? Is it all about the angular or the server?
|
$httpmethods. Instead of.success(data => {})use.then(response => {response.data})- user236014