如何过滤当前日期的广告系列。我是从Angular开始的。
// Controller
app.controller('customersCtrl', function($scope, $http) {
$http.get('list.json').then(function(response) {
$scope.campanha = response.data.campaigns;
});
});
在我看来
<article class="campanha" ng-repeat="campaign in campanha | searchFor:searchString">
<a href="#single/{{campaign.id}}" title="{{ campaign.name }}">
<img class="img-responsive" src="{{ campaign.imageAddressXhdpi }}" alt="{{ campaign.name }}">
</a>
</article>