The ngRepeat directive instantiates a template once per item from a collection. Each template instance gets its own scope, where the given loop variable is set to the current collection item, and $index is set to the item index or key.
-1
votes
1answer
21 views
Array Within Array using ng-repeat
Can anyone help me in parsing below JSON Request using ng-repeat
I want to know how to use ng-repeat in HTML to get the description of the troubles in JSON
Using below code I am getting whole ...
24
votes
6answers
45k views
Angular.js ng-repeat filter by property having one of multiple values (OR of values)
Is it possible to filter an array of objects, such that the value of property can be either of a few values (OR condition) without writing a custom filter
This is similar to this problem - Angular.js ...
4
votes
3answers
52 views
AngularJS filling table
I need to create a table with the following object:
this.customer =
[{
cid:"1",
productid:"1",
src:"walmart",
total:"1"
},
{
cid:"1",
...
0
votes
2answers
23 views
Tooltip in angularjs ng-repeat?
I am trying to display a tootltip on the top of each element on the first TD. But since its in the ng-repeat, many tooltips(badly designed) are showing up. How can I show it just on the top of the td ...
40
votes
5answers
59k views
AngularJS sorting rows by table header
I have four table headers:
$scope.headers = ["Header1", "Header2", "Header3", "Header4"];
And I want to be able to sort my table by clicking on the header.
So if my table looks like this
H1 | H2 |...
19
votes
6answers
2k views
AngularJS: virtual repeat with row with different heights
I'm building an hybrid app using ionic and AngularJS (AngularJS-material). This app also has an integrated chat built with Node.js and socket.io.
I have the problem now that with only 200 messages ...
1
vote
0answers
19 views
AngularJs/ngTable + ui-Sortable => wrong order displayed after reload
i have a problem with reordering item in a table.
i'm using angularJs + ngTable and ui-sortable.
The problem is that the reordered data ist displayed in wrong order after reloading. The data is ...
0
votes
2answers
24 views
Passing ng-repeat local object to directive controller is not working
I'm trying to pass my ng-repeat local object to directive. I need to access the data from that object inside my directive controller. I'm confused about iso-lated scope and controller scope. Why it's ...
1
vote
2answers
28 views
Choose angularjs filter dynamically based on condition in ng-repeat
I am looping through list of items using ng-repeat. There are some values which i want to display as simple numbers like "435" or "43", some i want to display as double like with 2 decimal places "545,...
0
votes
2answers
16 views
ngRepeat across pairs to build table with rowspan=“2”
I have an array of pairs that I need to display in a table where the 1st column spans 2 rows like in the image.
The array looks like this:
$scope.products = [{
p0: {name: "n1", img: "a", brand: "...
0
votes
1answer
14 views
ng-class not updating inside of ng-repeat when array is changed
The code below is from a chat interface in an Angular application. The user will select the users they wish to send the message to by clicking on user bubbles which will add those users to an array ...
2
votes
1answer
28 views
Can I replace ng-repeat in my mobile app with a React component?
No matter what I try (crosswalk, track by, collection-repeat, limitTo with infiniteScroll, one-way binding, ng-if), using ng-repeat I'm not able to develop a good Ionic1 app.
Since React is a library,...
33
votes
2answers
38k views
Angular JS filter not equals
Seems like a very basic question but I can't get the syntax right..
<li class="list-group-item" ng-repeat="question in newSection.Questions | filter:Id != '-1'; " ng-mouseenter="hover = true" ng-...
0
votes
0answers
16 views
Model won't update when adding filter to ng-repeat w/pagination
I am new to Angular (and StackOverflow!), and apparently am still struggling with parent and child scopes, no matter how many times I have read about them (and the big rule of never bind to primitives)...
0
votes
2answers
25 views
cancel button not working when editing a ng-repeat item (in a modal) using angular copy
I have created a ng-repeat of blocks where I would like to edit a block in a modal window and cancel the window to discard any changes.
I have managed to get the modal window working and editing ...
67
votes
14answers
41k views
Angular ng-repeat add bootstrap row every 3 or 4 cols
I'm looking for the right pattern to inject a bootstrap row class every each 3 columns. I need this because cols doesn't have a fixed hight (and I don't want to fix one), so it breaks my design !
...
0
votes
1answer
27 views
AngularJS - include source code of a template in a <code> element
I have a json array that I iterate through like so...
<div class="panel panel-primary" ng-repeat="c in components">
<div class="panel-body">
<h2>{{c.title}}</h2>
...
0
votes
4answers
21k views
why angularjs ng-repeat not working
I am trying out the basics of AngularJS first time. I am trying out ng-repeat first time. However it is not working.
Here is a non working jsfiddle.
I have written the code in single standalone ...
0
votes
1answer
37 views
Angular filtering data in javascript is not displaying results and push of data causes error plunker provided
Ok, seems that I was having too many issues with the way in which my Angular site is setup, so I put it in a plunker as then anyone can see it.
Original question: Angular retrieve specific data ...
0
votes
1answer
36 views
Angular Accordion not resolving to correct html
I want to use Angular Accordion with ng-repeat. I am facing a strange behavior where the html is not resolved properly on my page and my accordion does not work at all. But the same code works like ...
0
votes
0answers
31 views
how to iterate this complex data in angular js
How to iterate this key value pair JSON data in angular js
$scope.data=
[
{
"2016": {
"Feb": 8,
"Apr": 14,
"Mar": 23
}
},
{
"2015": {
...
1
vote
2answers
35 views
how to set $Index to 1 every ng-repeat call
<table class="table table-bordered">
<tr ng-repeat="x in AppliedJob">
<td>{{x.JobName}}</td>
<td> <span class="dropdown" ng-repeat="y in AppliedCenter| ...
0
votes
0answers
33 views
Acces ng-model in ng-repeat
First sorry for my English.
I have two arrays but the important is array bloques:
bloques[estado:"", fecha:"",idbloque:"" idbloquec:""materia:""]
and bloques have arround 30 elements
I have the ...
1
vote
2answers
42 views
ng-repeat takes too much time to render data
I know there are many questions already posted for the same issue but none of the solutions work in my case.
On calling a web service I get JSON response. In this JSON, there are around 2000+ objects ...
0
votes
2answers
33 views
get value from ng-repeat radio buttons
I have ng-repeat of radio buttons:
<div ng-repeat="c in currencies">
<ion-radio ng-model="checkradio" ng-value='c.code' >
{{c.name}} {{c.code}}
</ion-radio&...
0
votes
0answers
15 views
select2 dynamically option selected to ng-option object
select2 is generated with ng-options at time of loading. After on some event I m selecting the value of select2 from controller but it doesnt displayed in it. Please figure out mine problem.
1
vote
2answers
59 views
Angularjs directive within ng-repeat not updating outside controller data
I have a isolate scope directive that I am using inside ng-repeat, which is iterating over an array from the controller of that template. The template is as follows:
<!DOCTYPE html>
<html>...
1
vote
0answers
31 views
ng-table, ng-repeat, filter works only for the current page, in a paginated table
I implemented a custom filter for my ng-table, where it uses ngTagInput. Link[1] is similar to my code, this filter does works only with the current page.
What is the correct way of getting all the ...
0
votes
1answer
13 views
Target a value of an array within another array?
I have a json file that has arrays within an array and for the life of me I can't think of how to access a particular value from the inner array when using ng-repeat.
So here is a sample of the json ...
0
votes
1answer
32 views
ng-repeat not comparing values on ng-if
I have an array of elements, $scope.hides = [3,5] and i am comparing these values with values in a table using ng-repeat and ng-if..
If a value in array and table matches, that row in the table ...
0
votes
0answers
14 views
Finding a property of an object using ng-repeat
I have an array of an object i created, which has an instance variable ID that is a string. I am using ng-repeat to loop through this array, and populate a select box with the ID property, where the ...
0
votes
2answers
35 views
ng-if and ng-repeat to compare in table
I have a table with id column (1,2,3,4,5) and i have an array of elements. $scope.elements has values - 1,3.
<ul ng-repeat="x in elements>
<li>{{x}}</li>
</ul>
Using this I ...
3
votes
2answers
45k views
angularjs remove Selected Items using splice Function
I was looking for a solution to remove items from the Grid; that's why I posted the question before. But when I got the solution from someone, at that time, I thought it solved the issue, but it was ...
3
votes
3answers
37 views
ng-repeat not copying correctly over
I have ng-repeat working within a different template, however, I can not get my album.html template to display content. Here is what I have.
app.js
...
.state('album', {
...
-1
votes
0answers
5 views
Table headings are repeating and table rows are repeating using angularJS
Table headings are ids.
That are repeating but not constant and table datas are repeating into columns based on the table heading.
1
vote
0answers
14 views
Multi selectable checkbox groups using angularjs
Some time back I was looking for multi select checkbox group option in angularjs. I could not able to find my self on stackoverflow, Since i have developed it and sharing here js fiddle link.
<div ...
104
votes
10answers
62k views
How to improve performance of ngRepeat over a huge dataset (angular.js)?
I have a huge dataset of several thousand rows with around 10 fields each, about 2MBs of data. I need to display it in the browser. Most straightforward approach (fetch data, put it into $scope, let ...
1
vote
1answer
51 views
I have to make ng-repeat of a bunch of divs. How can i do that
I need to ng-repeat a bunch of divs like how i mention below. I want to iterate and populate each object in the list. In below code they have made separate entry for each list item. But i wish to get ...
0
votes
0answers
24 views
Performance of many ng-switch alternatives in ng-repeat directives
I currently work on an angular directive to display a generic form, based on a json description.
I am concerned to ng-repeat over all inputs and ng-switch or ng-if-iterate on all possible input ...
13
votes
3answers
23k views
ng-repeat filtering data by date range
I'm trying to filter a list that contains a timestamp by typing a range of dates
for example:
JSFIDDLE
html
<div ng-app="tst">
<div ng-controller="MyController">
<...
68
votes
14answers
98k views
How to make ng-repeat filter out duplicate results
I'm running a simple ng-repeat over a JSON file and want to get category names. There are about 100 objects, each belonging to a category - but there are only about 6 categories.
My current code is ...
0
votes
3answers
27 views
AngularJS nested loops - how do i get to not display an item when a condition fails in an inner ng-repeat loop
Say I have a nested loop like the code below
<div ng-repeat="m in masters">
<h3> {{m.name}} </h3>
<div ng-repeat="i in items">
<a ng-if="m.url === i.url"&...
1
vote
2answers
38 views
Isolated scope directive in ng-repeat not working as expected
I am having one isolated scoped directive and clear button looping in ng-repeat.
HTML
Controller (parent scope):
<br /> kids: {{kids}}
<br /> lonelyKid: {{lonelyKid}}
<br />
<hr ...
0
votes
1answer
32 views
How do I list two elements per item in array?
I have several email addresses per user, and I want to give two options per each of those addresses; one is to send email directly, and another one is to send a message via a web form. But how do I ...
0
votes
1answer
29 views
AngularJs Table not updated after Create/Delete/update
If I Create/Update/Delete Values in my Array the ng-table is not Updating the Data. I need to do a window.location.reload() for that but thats not very "beautifull". Shouldnt in Angularjs through 2Way ...
0
votes
3answers
31 views
Array index into column in agularjs using ng-repeat
I need help in getting JSON Array Index into Table Columns using Angular JS ng-repeat, Below is the JSON and I want to Convert into HTML Table as shown below
{
"Employee": [
{
"Name": "...
1
vote
1answer
30 views
Get data from mysql and then display each of them inside dynamic table with angularjs
So I have mysql database. User can enter number of fields inside input and that number is stored inside db. When user define number of fields (for example 3) new fields appears. In our example of 3 ...
3
votes
3answers
1k views
Slow performance with angular material md-select and ng-repeat
I'm writing an enterprise application using angular and angular material and have problem with the performance of a medium sized (in my opinion) form. Especially in IE.
(Working demo, see https://...
0
votes
1answer
42 views
Angular ng-repeat shows nothing
I am trying to display a list using ng-repeat. When used directly in html it works without issues. However, when I try to insert the same code using directive, the ng-repeat does nothing and does not ...
0
votes
2answers
26 views
Catch ngRepeat init event
I need to detect a moment, when ngRepeat appear, before data is ready.
I've tried to use compile (it fires once for ngRepeat), but still no luck, it fires after data is ready.
The goal is to set ...