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.

learn more… | top users | synonyms

1
vote
0answers
17 views

How can I set the first accordion item in the ngRepeat to be open while the rest are not?

I'm creating a list of tables with collapsible tbodys. This code works fine but I want to have the first tbody open on default. I've tried ng-init="showReports0" on the table tag, but this doesn't ...
1
vote
1answer
29 views

Angular JS: Binding using ng-model with an ng-repeat on a select element

So, I have the following working code: Angular: $scope.audit = {user: ''}; HTML: <md-select ng-model="audit.user""> <md-option ng-repeat="u in users" value="{{u.username}}"> ...
0
votes
1answer
27 views

Nested ng-repeat with constrained data

I have a nested ng-repeat as follows: <div ng-repeat="item_l in list1"> <div ng-repeat="item_f in list2"> {{item_f}} {{item_l}} </div> </div> It gives me ...
0
votes
1answer
22 views

ng-filter with filter is not filtering

hi I'm trying to filter a list of objects in an array and displaying it. The filtering is based on the users input from an input field. I've had a look at number of questions on Stackoverflow, but I ...
0
votes
1answer
14 views

clear a file input that is in an ng-repeat

I have a set of file inputs being generated from an array with ng-repeat. I would like to be able to clear the input after the upload has been completed. So for example the uploaded file was at index ...
0
votes
0answers
24 views

Nesting table within Angular table

Let me start by saying that I am definitely new to Angular, but I have done a bit of digging and haven't found anyone else trying to do this with quite the same restraints. I am attempting to create ...
0
votes
2answers
23 views

Cannot create property 'selected' on string 'Information Technology' angularjs

This is my controller $scope.subjects = ["Computer Security", "Graphics and Multimedia", "Networks", "Computer Science and Engineering", "Game Design", "Programming", "Information Technology", "...
0
votes
1answer
28 views

ng-repeat duplicate issue, when there are not any duplicates

$scope.subjects = [ "Computer Security", "Graphics and Multimedia", "Networks", "Computer Science and Engineering", "Game Design", "Programming", "Information Technology", "Software ...
0
votes
0answers
15 views

Is there a way to bind the repeat_expression of ngRepeat?

I am wondering whether I can set the repeat_expression in the scope and bind it in HTML? Such as: HTML <ul> <li ng-repeat="expression">{{item.name}}</li> </ul> or <...
0
votes
1answer
19 views

AngularJS repeat duplicate error

Included is an object array being used in an ng-repeat call And here is the error For the love of me I cannot seem to get why angular is treating these as duplicates. Any help is much ...
0
votes
2answers
26 views

Aligning cards in ng-repeat

I am showing cards using ng-repeat. The data and all is coming fine but somehow i am struggling to have 3 cards in a row and go to the next row for the other items. My ng-repeat code is as follows: &...
0
votes
1answer
9 views

Not able to retrieve array from cookie on page load

Not sure of how correct is the title to my question , i am storing the input of the searches in an array and placing that array in a cookie . while the page refreshes i use init function to initialise ...
0
votes
0answers
23 views

2 ng-clicks calling same function in ng-repeat Ionic AngularJs

enter image description here We have Plus and Minus buttons inside ng-repeat. Each button should increment or decrement value inside the particular textbox. There are 2 functions for increment and ...
0
votes
0answers
8 views

ion-radio buttons with ng-repeat

I am new to angularjs and a self learner, i am facing one problem with radio buttons as i am getting Array from server and have to put radio buttons in that , every category can have multiple values ,...
0
votes
0answers
18 views

How to filter ng-repeat with pagination

In my ng-repeat I have used the following code <div ng-repeat='item in (prd.items.slice(prd.pagesize * (prd.page -1),prd.pagesize * prd.page)) | filtercat:prd.selection prd.item.slice is used ...
0
votes
2answers
16 views

Animation delay ng-repeat

I have this code with ng-repeat and delay in css: <div class="card moveUp" ng-repeat="x in optionsCards" style="animation: moveUp 0.50s ease forwards;"> <span class="fec">Updated Aug ...
0
votes
1answer
18 views

Filter ng-options condition ng-model

I'm trying to filter a select depending on the value selected in another selector. These Common have value. The data are : Countries { "paisCodigo": "AR", "paisNombre": "Argentina", "...
0
votes
2answers
25 views

How to fill dropdown by matching key from array inside ng repeat?

I am having json structure like this: 101 : "List": [ { "Name": "Pink" }, { "Name": "Black" } ] 102 : "List": [ { "Name": "Red" ...
2
votes
3answers
48 views

ng-repeat array order by the property index of datasource

I have an array source with nested arrays DataRows with no property name like that: $scope.arraySource = [ ["21", "Leon", "Blue"], ["15", "Marcel", "Red"]...
-2
votes
2answers
29 views

show following json response inside a table using ng-repeat in Angular

I have a response as given below Response : response: {"json": {"response": {"servicetype":"", "functiontype":"", "statuscode":"0", "statusmessage":"Success", "data":[{"graphtype":"piechart", "...
0
votes
1answer
29 views

Dynamic links with angularjs and ng-repeat

I'm creating an app using fake JSONplaceholder API. I'm displaying a list of posts and I want the ng-repeated post titles to link to the post view. Here's the HTML: <body layout="column" ng-...
0
votes
2answers
39 views

Creating dynamic links with Angular.js' ng-repeat

I'm creating an app using fake JSONplaceholder API. I'm displaying a list of posts and I want the ng-repeated post titles to link to the post view. Here's the HTML: <body layout="column" ng-...
2
votes
3answers
56 views

Show unique items with count of duplicate occurrences in ng-repeat

I have a below JSON: [{"brand":"abc"},{"brand":"xyz"},{"brand":"abc"},{"brand":"abc"},{"brand":"por"},{"brand":"xyz"}] Using ng-repeat, How can I display like - Brand Occurances abc (3) xyz ...
0
votes
2answers
34 views

Two-tier sorting for ng-repeat

For example, I have the following collection used for ng-repeat: $scope.pokedex = [{ type: "Fire", pokemon: ["Charizard", "Moltres"] },{ type: "Rock", pokemon: [] },{ type: "Fighting", ...
0
votes
1answer
38 views

Binding ng-model to ng-repeat not working

I'm trying to bind ng-model dynamically with ng-repeat, but it doesn't seem to work. input.placeholder and input.fa both work as expected, but I can't seem to bind ng-model to anything as it gives me ...
1
vote
0answers
20 views

Passing angular interpolated ID to function

I have been trying to pass the ID of a SVG element generated by ng-repeat. each one has a cx, cy, and an id: $scope.circles = [ {cx:25, cy:40, id:1}, {cx:55, cy:40, id:2}, {cx:75, cy:40, id:3}]; ...
0
votes
2answers
30 views

Ng-Repeat not updating until page is refreshed

To give a brief rundown of what I am working on: This app is a phonebook that makes a call to our backend system and returns a JSON payload which is then parsed and stored to Local Storage for ...
0
votes
1answer
36 views

Angular search for combined key

Say you have the following object: var user: {firstname: 'Marc', lastname:'Ras', age:30}; You have alot of these objects in an array called: user_array Now you wish to display them in a table so ...
2
votes
1answer
35 views

AngularJS: ng-repeat track by obj.id doesn't reinitialise transcluded content when obj.id changes

function ComponentController() { var vm = this; this.$onInit = function() { vm.link = 'http://example.com/obj/' + vm.obj.id; } } function MainController($scope, $timeout) { $scope....
0
votes
1answer
32 views

Pass object to a new page

I have some json which is being ng-repeated: { "title": "image title", "description": "Lorem ipsum dolor sit amet, per ea ferri platonem voluptaria, ea eum ubique ornatus interpretaris. Dolore ...
0
votes
0answers
30 views

AngularJS groupBy filter

I have the following json (excerpt): [ { "ENTITY": "C-2919", "YEAR": "2016", "QUARTER": "Q1", "VALIDATION_ID": "2", "SUB1_ACCOUNT": "CPA1226912", "SIGN": "+", "...
0
votes
3answers
32 views

use orderBy for value in array

I have nested ng-repeat that extracts data from the server: <div ng-repeat="x in result | filter:sellbox " > <div ng-repeat="z in x.data | orderBy:'??' " > {{...
0
votes
3answers
54 views

How to change background color of an item based on the click in AngularJs

I have listed a number of 's using ng-repeat. When I click on one (div1) background color becomes blue, and if I click on other div (div2) - div1-background-color becomes white as it was at the ...
1
vote
1answer
31 views

angularjs - Filter to hide from repeater

I am trying to write a small filter to hide from my repeater elements. Let's say that my scope is: $scope.test = [ {id: 1,name: "Test number 1"}, {id: 2,name: "Test number 2"}, {id: 3,...
0
votes
0answers
12 views

Problems with flexslider and Angular

I'm trying to use Flexslider with Angular JS. I use ng-repeat to loop through an array of objects and fill my flexslider with images. Above the flexslider, I have three links that changes an index ...
5
votes
2answers
39 views

Using protractor to test an angularjs app, how do i keep a reference to one of the rows of element.all when the array changes as I work with it?

I have an ng-repeat which has a new element added to it as soon as the existing "last" element is modified in any way. My protractor test looks something like this: var emptyPerson = this.people....
1
vote
2answers
22 views

ng-repeat only on inner elements

I find this problem with ng-repeat that the tag where it is used is also gets repeated, how to repeat only the elements inside it? <div class="accordions" ng-repeat="event in eventsData"> ...
0
votes
1answer
31 views

Remove select options from other select boxes based on current selection - AngularJS

I am implementing security questions in my project. I have 3 security questions that the user should answer. If the user selects a particular question that question should be removed from other ...
2
votes
0answers
28 views

Run a controller after another controller renders

I've a <div> containing several sub-controllers, each of which generates a Highchart from inside the controller and a table from ng-repeat in the HTML file. I have a main controller which ...
0
votes
2answers
29 views

orderby date angularjs ng-repeat

i'm trying to orderby 'date' together with ng-repeat but my date format is "date": "Sun, 01 Sep 2016 08:47:53 -0400". i tried using momentjs but i'm getting a wrong list. pls, how do i orderby date ...
2
votes
2answers
26 views

Dynamical ng-model in ng-repeat is undefined

I need help with dynamically generated models inside ng-repeat. I have a HTML with ng-repeating table rows. Each row has an option to update image name and price with update button. HTML <tr role=...
-1
votes
0answers
8 views

How to include a html which contains angularjs binding as pop up modal

I am new to angularjs. I have a html page which I need to include in another html page as pop up (both the html page have contents loaded from controller). It is working fine when I use router to ...
-1
votes
1answer
31 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 ...
0
votes
2answers
27 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 ...
0
votes
2answers
28 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 ...
2
votes
0answers
32 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 ...
1
vote
2answers
36 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
20 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
2answers
32 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,...