Top "Angular-filters" questions

AngularJS "filters" format the value of an expression to be displayed to the user.

Calculating date difference with angular filter

I needed to be able to calculate the difference between two days, inclusive, and display the difference. Ideally this would …

javascript angularjs angularjs-scope angular-filters
ng-repeat groupBy date field per day

I am trying to groupBy a date which is a JS date object. I want to group the data per …

angularjs angularjs-ng-repeat angular-filters
What's the difference between using toFixed and the angular number filter?

What are the differences between: {{ 3.14159 | number : 2 }} and {{ 3.14159.toFixed(2) }} Does one offer advantages over the other? Thanks

javascript angularjs angular-filters
AngularJS UnixTime to DateTime Format with date filter failed

I learned that one can transform a unix time stamp into a date by using date filter from this post: …

javascript angularjs datetime unix-timestamp angular-filters
Angular orderBy object possible?

I have a JSON object representing calendar dates. These are added through a CMS and I'd like to be able …

json angularjs angularjs-orderby angular-filters
AngularJS - Access $scope from controller in custom filter

I have a controller with various $scopes. I need to access one of these $scopes in a custom filter: app.…

angularjs angularjs-scope angular-filters
Can I group by multiple fields using Angular-Filter?

I'm using Angular-Filter's groupBy filter. Example from GitHub: $scope.players = [ {name: 'Gene', team: 'alpha'}, {name: 'George', team: 'beta'}, {name: 'Steve', …

angularjs group-by angular-filters
Filtering by multiple checkboxes in AngularJS

first time I've posted a question on here, so apologies in advance if I breach any Stack Overflow etiquette! :-) …

angularjs angular-filters
How to mock angular translate filter in unit tests for directives

In my directive templates, I need to use the angular translate filter as such: <label for="data-source-btn"> <…

angularjs unit-testing angular-translate angular-filters
AngularJS - Using ternary operators and filters within a binding

I current have a simple data binding: {{ myAccount.Balance }} I think applied a couple of filters: {{ myAccount.Balance | filter1 | filter2 }} …

javascript angularjs angularjs-scope ternary-operator angular-filters