UNPKG

zettapi_client

Version:

Admin panel and client-side CRUD operations in angular to use with zettapi_server rest api to get started quickly in any CMS project.

18 lines 451 B
app.directive('alphaSlider', function () { return { restrict: 'AE', replace: false, templateUrl: 'directives/slider/slider.html', controller: function ($scope, $entity) { $scope.active = 0; $scope.noWrapSlides = false; $entity.get('slider').then(function (response) { $scope.sliders = response.data.filter(function (s) { return s.active === true; }); }).catch(function () { $scope.sliders = []; }); } }; });