a8m / a8m/angular-filter

using Filter Inside a controller

Open
#150 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.9k
Forks
319
PR merge metrics
No merged PRs in 30d

Description

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));

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.