a8m / a8m/angular-filter

using Filter Inside a controller

Đang mở
#150 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
JavaScript
Star
2.9k
Fork
319
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Hi,
How can we use this filters inside a angularjs controller. It works fine when I use it inside html with ng repeat

"data-ng-repeat="orders in orderList | unique: 'submission_Date'"

but when I try to use it inside my controller then it is not working properly

console.log($filter('unique')($scope.orderList ,$scope.orderList .submission_Date));

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.