Linked Questions
23 questions linked to/from How to filter (key, value) with ng-repeat in AngularJs?
0
votes
2
answers
8k
views
Filter ng-repeat using associative array [duplicate]
So I have an associative array (or object to be more precise)
$scope.items = { 'x': {...}, 'y': {...} };
I want to do an ng-repeat which works fine
<div ng-repeat="(id, data) in items | filter: ...
0
votes
0
answers
102
views
Filter object key not working [duplicate]
Note: I already read and try all answers inside this question. Unfortunately, it's not working for me and I got no luck.
I create a simple Angular app to play around with CurrencyLayer API. My app is ...
542
votes
11
answers
994k
views
AngularJS ngClass conditional
Is there any way to make an expression for something like ng-class to be a conditional?
For example, I have tried the following:
<span ng-class="{test: 'obj.value1 == \'someothervalue\''}">...
30
votes
3
answers
82k
views
How to filter a select with ng-options in Angular?
I've written the following proof-of-concept of an Angular app that allows a person to vote for President of the US.
<!DOCTYPE html>
<html ng-app="ElectionApp"">
<head>
<title&...
8
votes
4
answers
19k
views
ng-repeat orderBy object
UPDATE:
on my html page I'm using as the following:
<section ng-repeat="template in templates">
<ng-include src="template"></ng-include>
</section>
but the ...
6
votes
2
answers
6k
views
Filter Firebase data using AngularJS
i have a data in firebase like this:
firebase_data {
-JGc5X37NDuvmJylmx0s: Object {
name: 'John Doe',
age: 21
}
-JGnGJlTjyAxFT-Vn48Y: Object {
name: 'Jane Doe',
...
0
votes
5
answers
6k
views
How to remove or hide a key-value pair of an array in AngularJS
I have a collection of objects in an array like this:
[
{
"NAME": "John Doe",
"AGE": 25,
"CITY": "New York",
"COUNTRY": "USA",
"GROUP_ID": 1,
"ACTIVE": 1
},
{
"NAME":...
1
vote
1
answer
1k
views
AngularJS: condition in ng-repeat directive
I would like like to know how can i set a condition in a ng-repeat who is in a directive call:
<map-marker ng-repeat='obj in objects'
title= 'obj.name'
latitude= 'obj.last_point()....
0
votes
1
answer
1k
views
Angular filter not working in ng-repeat
All code here: http://stevendavisphoto.com/mc/
Filter: <input type="text" ng-model="search">
<tr ng-repeat="(id, group) in groups | filter:search" class="editing-{{group.editing}}">
I ...
0
votes
3
answers
709
views
How to select partial json output and poupulate in the html using Angular JS?
I am reading the below json value from a module.js and my question is exist below the json.
.controller('home.person',['$scope','$filter','personResource',function($scope,$filter,personResource) {
$...
-1
votes
2
answers
560
views
Sort an object in angularjs ng-repeat directive
I have an object
Object {1: "CMAR0002", 2: "CMAR0003", 4: "CMAR0001"}
I am using this object in ng-repeat directive but i want to sort it by values. But the problem is that angular orderBy filter ...
0
votes
2
answers
500
views
Angular Js Object Filter in ng-repeat
How can i filter based on object values like 1 or 2 or 3
i am trying to filter my json which looks similar to the names object
This is my code i tried to apply filter but its not working
<!...
0
votes
2
answers
193
views
Using filter to sort $scope object in ng-repeat
I need to sort a $scope object in ng-repeat based on value. I am able to acheive the sorting by converting it into array through custom filter but either key or value only can be pushed into the array....
0
votes
2
answers
240
views
angular filtered dropdown model not updating
I'm trying to update a filtered dropdowns(combobox) model on click of a button. The model value is changing but dropdown still shows an empty selected option. If I remove the filter everything works ...
0
votes
2
answers
210
views
AngularJS limiting table size doesn't work
I have a table and I am trying to limit the size of that table to 5. Here is what i have so far.
<tr ng-repeat="(key,value) in cla|limitTo:5">
<td class="mdl-data-table__cell--non-...