0
нужно показать загрузчик изображения перед тем, как ответ
я использовал код ниже:Показать погрузчик перед тем, как ответ
HTML:
<div ng-app="myApp" ng-controller="customersCtrl">
<div class="table-responsive">
<table class="table table-striped table-hover table-condensed">
<tr>
<th>Name</th>
<th>City</th>
<th>Country</th>
</tr>
<tr ng-repeat="x in cus_names">
<td>{{x.Name}}</td>
<td>{{x.City}}</td>
<td>{{x.Country}}</td>
</tr>
</table>
</div>
</div>
JS:
var app = angular.module('myApp', []);
app.controller('customersCtrl', function ($scope, $http) {
$http.get("http://www.w3schools.com/angular/customers.php").success(function (response) {
$scope.cus_names = response.records;
});
});
Спасибо заранее
Нет значков загрузки по умолчанию в угловом вас, чтобы реализовать только –
Можете ли вы дать еще один вариант для этого –
Возможный дубликат [Отображение Spinner GIF во время запроса $ http в угловом] (http://stackoverflow.com/questions/ 15033195/show-spinner-gif-in-http-request-in-angle) –