Questions tagged [angularjs-filter]
Selects a subset of items from array and returns it as a new array.
angularjs-filter
1,234
questions
1
vote
1
answer
36
views
Angularjs, how to format a oracle timestamp(6) to string without losing the last 3 digits?
AngularJS has a date filter, but it seems the accuracy can only down to milliseconds.
https://docs.angularjs.org/api/ng/filter/date
so for a oracle timestamp(6) which accuracy down to six decimal ...
0
votes
2
answers
66
views
How to limit a text on occurrence of space or after completing a word in string/sentence
I am currently using a LimitTo filter to make excerpts of the description of an article to appear on the homepage of a website as a snippet in the feature section.
LimitTo is currently working for say ...
0
votes
1
answer
927
views
how to make certain options bold in select using angularjs filter and ng-options
I am using the AngularJS ng-options to populate certain select element. I would like to make some options bold and make them disabled. I am trying to achieve this using the filter along with ng-...
0
votes
1
answer
76
views
Filter elements of an ng-repeat list from another ng-repeat list
I have only one array which shows title, description and category.
As I don't know the categories (because the users can add their own) I did the categories list with an ng-repeat, same to show the ...
0
votes
0
answers
90
views
Strange table search results with Angularjs Filter
Our team has built an HTML table with a search input at the top:
<input placeholder="Search..." ng-model="searchTable">
In our ng-repeat, we have the following:
<tr ng-repeat="item in data....
0
votes
0
answers
76
views
AngularJS Custom filter using radio button
<div ng-repeat="item in places">
<input type="radio" name="rdnPriority" value="{{item}}" ng-checked="exists(item,selected)" ng-click="toggle(item,selected)" >{{item}}<label>
...
0
votes
1
answer
390
views
AngularJS Custom Filter in ng-repeat Table
I can filter values in table (especific column) with this custom filter. Data come from an array of a multiple select input
Complete Example:
http://jsfiddle.net/d1sLj05t/1/
myApp.filter('...
0
votes
1
answer
254
views
AngularJS filter where checking if array parameter contains value
I have simple function to set active state for nav based on url:
angular.forEach(this.$filter('filter')(this.fullNav, {
'link': this.$location.$$path
}, true), (item) => {
item.active = ...
0
votes
3
answers
89
views
Angularjs filter on two values of one field
I need to use either a filter or another, how to do?
<tr ng-repeat="currentCollectionItem in binding
| filter: ({ isPending: false } || {isPending: undefined})">
-1
votes
3
answers
136
views
AngularJS filter (object and multiple values) not working
So I got a project which is using AngularJS with UI-Router, I iterate through a json which has a property called "state" which is what I want to use as a filter, however, I will be using a "selector" ...
1
vote
2
answers
291
views
Changing column on searching in html table
Created a custom search in the table using javascript. Working as expected!
Can (Sr.) always be 1,2,3,etc?
Meaning, In the below script, if I search "vin", it will show only that row having ...
2
votes
2
answers
102
views
Calculation of the sum of repeating elements within a filter using the FILTER function of AngularJS
I have a list that shows the total of the records, when filtering a single name it still shows me the total of the records and not the total of the filtered record. TRY HERE
<!DOCTYPE html&...
0
votes
1
answer
45
views
AngularJS repeat filter strings ending with the letter G
I have an AngularJS app, and need to display object properties that end with a G on one line, and ones without the G on another:
<div class="col"><strong>Grass</strong>
<span ...
0
votes
2
answers
337
views
How to filter Multidimensional Array with limitTo in AngularJS
I have a following Multidimensional Array in the controller.
var app = angular.module('myApp',[]);
app.controller('myController',function($scope){
$scope.myData = [{name:'Person1',surname:'...
1
vote
2
answers
1k
views
AngularJS filter show only matched word as result, not entire string
Is it possible to display only the matched word in ng-repeat with filters?
For example I have the following strings
[
{text: 'This is first text from the array.'},
{text: 'Text in this array is ...