You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
690 B
24 lines
690 B
|
|
angular.module('zuykov')
|
|
|
|
.controller('TrademarkSearchLandingCtrl', ['$scope', '$http', function ($scope, $http) {
|
|
$scope.load = function () {
|
|
$scope.trademarks = [];
|
|
$scope.loading = true;
|
|
$scope.loading_text = 'Загрузка';
|
|
$http.get('/ru/trademarks/online-search/random-trademarks/').
|
|
success(function(data, status, headers, config) {
|
|
$scope.trademarks = data.items;
|
|
|
|
$scope.loading = false;
|
|
$scope.loading_text = 'Показать ещё';
|
|
}).
|
|
error(function(data, status, headers, config) {
|
|
$scope.loading = false;
|
|
$scope.loading_text = 'Показать ещё';
|
|
});
|
|
};
|
|
|
|
$scope.load();
|
|
|
|
}]); |