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

2
votes
4answers
45 views

Issue with ng-repeat

var responsePromisecom = $http.get("restapi calling"); responsePromisecom.success(function(data) { console.log(data); $scope.items=data.platform.record; }); ...
0
votes
3answers
29 views

Filtering data using checkbox

For default must show items that have prop "state: 'notarchived'" and "state: 'archived'" must be hided When I have a Check I need hide elemets with "state: 'notarchived'" and show elements with "...
0
votes
1answer
32 views

Delete button “delete” after clicking in ng-repeat

I'm showing data by ng-repeat. There Have button. to delete item. After delete item, this button must dissapear only for item that I deleted. <tr ng-repeat="paymentinfo in paymentList | filter:...
0
votes
0answers
50 views

Make a tree and filter at the same time

I have a map (key,value). I want to display it like this in my html page : Menu1 FunctionA Menu2 FunctionB FunctionC Menu3 FunctionD Menu4 Menu3 ...
3
votes
2answers
33 views

Angular repeat, break across columns

I'm doing a multi-checkbox form where I have as many as 100 items in my array and a numColumns integer that can range from 1 to 5. So, if I receive, say, 14 items and 4 columns: []item 1 []item 5 ...
-2
votes
1answer
32 views

ng-repeat not showing any contents

I'm trying to put the content in my MongoDB using Mongoose and AngularJS. So far everything seems to be working but when I use ng-repeat the table comes up blank. HTML code <div class="container"...
4
votes
1answer
24 views

Create select with otpgroup based on two different data

Hi Friends here two data in one JSON file where I need to create Select option based on country field and show data based on location field "countries": [ { "id": "75", ...
0
votes
1answer
30 views

How to filter table data in ng-repeat with date

I have the following index.cshtml <td>From:<input kendo-date-picker ng-model="date1" class="form-control input-sm" /></td> <td>To:<input kendo-date-picker ng-model="date2"...
0
votes
2answers
30 views

AngularJs - ng-options object.object

I am displaying countries and cities in a select box in angularjs, which are working fine. ng-model of country displays the output when I call {{country}}. However ng-model of city couldn't be called ...
1
vote
1answer
35 views

AngularJs: Nested UI-Bootstrap accordion not working, when update list value

I generate "ui-bootstrap accordion" by ng-repeat. I want upddate value of list dynamically. But when I update nested list value, second accordion is not working. <uib-accordion close-others="...
2
votes
2answers
41 views

AngularJS input type hidden with ng-repeat

I'm developing an app and I've a table populated with ng-repeat and the last column of the table is an image that it is clicked open another page that should contains more details about the line of ...
-1
votes
0answers
37 views

AngularJS ng-if inside ng-repeat

What is more optimized? Inside an ng-repeat: ng-if="item.prop === $scope.items[$index-1].prop" or ng-if="item.prop1 === true" and setting "prop1" inside Javascript with the above condition? i.e; ...
0
votes
1answer
26 views

Angular JS: ng-repeat not generating an expected outcome

I have created an erray with name and extension property I want to traverse it using ng-repeat. May I know what am I doing wrong here? <%@ page language="java" contentType="text/html; charset=...
0
votes
1answer
14 views

Angular: Access variables from outside scope of ng-repeat

I am having issues accessing variables (attached to $scope) inside ng-repeat loop. My ng-repeat is as follows: <div class="row" ng-repeat="Message in Messages"> <p>{{ Message.Sender ...
0
votes
1answer
19 views

ng-model undefined in nested drop-down in ng-repeat

I'm new to Angular and I try to code a page to create teams and assign players to those teams. I put a select tag to select a player to add to the team. I've created a Fiddle with the problem. I ...
2
votes
3answers
29 views

Setting start index to loop in Angular js

I am developing a Web application using Angular JS. I am having a problem to use for loop in the html in Angular js way. Please see my scenario below. In angular js, we normally loop ng-repeat like ...
1
vote
1answer
23 views

ng-repeat errors. Can't read property of undefined

I have two errors saying: Cannot read property 'active' of undefined and Cannot read property 'boss' of undefined while I'm trying to use ng-repeat over my array of users. In the controller I'm using ...
0
votes
1answer
41 views

Ng-repeat without freezing UI on over 12k records

i have over 12k images mostly 10x10 size converted to base64 in a json array, and i have the size of the image in the json and x,y coordinates where i want to show the image on the screen, the json ...
0
votes
2answers
36 views

ng-repeat not adding new items dynamically

I am new to Angular JS (1) and I am having issues with ng-repeat. I am using socket.io with Angular. Here is my controller: var messagingApp = angular.module('messagingApp', []); function ...
0
votes
0answers
19 views

Multiple iframe youtube video stopping in angularjs javascript

Hi I have an issue in youtube iframe stoping video. when I used for single video its works fine.. when Im using multiple videos, the video is not stopped //view part <div ng-repeat="videos in ...
-1
votes
2answers
56 views

ng-repeat not showing data

I want to display all Images of a specific property. each image can only belong to 1 property and 1 property can have multiple images. I retrieving the Images table and property table separately. To ...
0
votes
1answer
31 views

Adding ‘active’ class in ng-repeat on hover

Hello I have the following code: div( ng-repeat='cladding in claddings track by $index' ui-sref='app.protected.docInside.cladding({documentId, claddingId: cladding.id})') div(ng-if='!cladding....
5
votes
3answers
71 views

How to show model and view differently in AngularJS

I am implementing a functionality in AngularJS. When the user enters 1.5, In view, it should show as 01:30, but when I fetch this scope value in the controller it should return as 1.5. I have added ...
0
votes
3answers
68 views

Angular JS ng-repeat not working with Array of Objects

I have a simple list <ul> <li ng-repeat="spiel in spielListe">Do something</li> </ul> And a controller (which is perfectly connected) $scope.spielListe = []; In ...
1
vote
1answer
26 views

How to increment a counter variable as you loop through an ng-repeat?

If I have an ng-repeat that is looping through an array of 100 records. Let's say I have $scope.counter and I want to increment that value by 1 for each iteration through the ng-repeat. How can I ...
1
vote
1answer
15 views

Not able to fetch key and value from nested JSON data in IONIC

I face a problem now that I am not able to fetch key and value from nested JSON data.Please help me I am doing any wrong. <ion-item class="item item-thumbnail-left item-text-wrap" type="item-text-...
0
votes
0answers
21 views

Angular list rendering

I've recently started to use Angular for front-end development to communicate with an API to perform state changes in the UI. I would like to know what is the way to update a front-end component after ...
0
votes
4answers
48 views

Angular JS ng-selected with ng-repeat not working

I am trying to set ng-selected true in ng-repet my HTML : <select ng-model="editActivities.NewArea"> <option ng-repeat="area in areas" value="{{area.ID}}" ng-selected="...
0
votes
4answers
43 views

Show one content at a time in ng repeat

I have the code here where I want to expand only one item at a time. I am not able to figure out the condition for this. Appreciate it if someone can point out what I might be missing. function ...
0
votes
0answers
25 views

Javascript of multitypeahead is not working while angular script get started

I have two JavaScript's to accomplish multi type ahead in one input box by, typeahead.bundle.min.js jquery.caret.min.js then i got a problem , whenever by angular script is running multi type ...
0
votes
1answer
42 views

ngRepeat used as element inside a table doesn't work

I have a strange problem with AngularJS 1.6.0 (same with older versions) and the ngRepeat directive when it's used as an element nested in a table. Simply put <ng-repeat> in a <table>, ...
0
votes
0answers
39 views

ng-if only true on div with certain class

I have a simple list of li I want to open a div only under the last li in a wrapped list. I do not want to select the $last item, but the last li of same height. For an example open google images and ...
0
votes
1answer
22 views

Recursive AngularJS Ng-Repeat without parent/child comparators

I am needing to create a recursive ng-repeat for my file structure. Everything I am finding on the interwebs is using parent/children comparators. Like so: $scope.categories = [ { title: '...
0
votes
3answers
37 views

Angular Show ng-repeat Key

I need to display the key in the products AL200W401 (without xxxx) using ng-repeat. in my HTML code its displaying the AL200W401xxxx. How to go about this thanks. JSON { "kits":"B11D0W201,...
0
votes
2answers
31 views

Angular - inside an ng-repeat, checkbox state to affect only one element

If I have for example a simple todo list: HTML <ul ng-repeat="todos in keyVar.list"> <li ng-class="{ 'completed' : keyVar.toggle }"> {{ todos }} <input ng-if="!keyVar....
-1
votes
2answers
35 views

How to send data from a table generated with a form inside a ng-repeat

I have a table generated with a ng-repeat directive. Each cell can be editable and each row has a submit button. The submit button must send only the data of the affected row to the controller ...
0
votes
1answer
24 views

How do I access $scope variables in Angular 1 after using keyword this?

I think I'm having a problem with scope in Angular. I'm trying to iterate through an array of images that I get back from a request using ng-repeat, but I can't seem to access a variable that will let ...
0
votes
1answer
17 views

Using Angular Material md-select without ng-repeat

I'm trying to use ms-select without the ng-repeat but it doesn't seem to work. Is it possible to use it that way or I have to use it with ng-repeat Here is my code: Html: <div ng-controller="...
0
votes
0answers
11 views

Multiple TinyMce not showing/Init right

Iam using TinyMce with the ui-tinymce Package. First I had multiple TinyMce generated through ng-repeat in a Table which worked fine. For Comparison now the ng-repeat generates a second TinyMce which ...
0
votes
0answers
50 views

How to write filter for this array to display proper format in Angular js?

I am getting response from backend like [ {"name":"logo2.png", "caption":"ll", "path":"images\/bussiness\/images\/logo2.png", "status":"1", "pract_image_id":4, "image_identifier":"2", "branch_id":2 },...
1
vote
6answers
52 views

How to print array in a row using ng-repeat with limit of 6 items in Angular js?

I want to print array items like a b c d e f g h i j k l m n o p q r My array is ["a","b","c","d","e"...] like up to r I tried like ths <div ng-repeat="array in arraylist | limitTo:6"> ...
0
votes
0answers
30 views

ng-repeat adding a 0 element to array

I'm creating an array in a service and fetch some data from a db and iterative over the data to add the group id as a key in the array angular.module('tasksApp'). factory("data", ["$http", function ($...
3
votes
1answer
99 views

AngularJS ng-repeat not re-rendering the repeater (UI) and not invoking ng-init once again

I have a small doubt about ng-init, actually I have some charts. Trendline on top Piecharts below. HTML Table below. on page load I am not displaying anything, but once I click on particular button ...
2
votes
1answer
34 views

Print blank rows in the table using ng-repeat

<table> <tr ng-repeat="obj1 in jsondata"> <td>{{$index+1}}</td> <td>{{obj1.Subject_ID}}</td> <td>{{obj1.Credit}}</td> </tr> /****...
1
vote
1answer
26 views

AngularJS array of objects ng-show or ng-if

I need to show a message of "No categories" so im using this: <div ng-repeat="categoryItem in categories"> <div ng-show="categoryItem.length">No categories</div> ...
0
votes
0answers
19 views

Dynamic elements and ng-repeat and ng-model

I'm having a problem. Within a ng-repeat I need to create dynamic inputs for different types of items depending on their type: T01 dynamic input type toggle T02 dynamic input type toggle T03 dynamic ...
2
votes
2answers
43 views

Angular: Why is my div not showing/hiding with ng-show/ng-hide?

I'm trying to make a super simple lightbox for some images. Basically I have a div with a set of images showing up using ng-repeat, and I want to have a lightbox div show up when one of the images is ...
0
votes
0answers
37 views

Custom 'compile' directive renders ng-repeat multiply times

I am using a custom "compile" directive to render HTML snippets that I push into a div container which is working great. One problem I am having is that it seems like the compile directive gets called ...
0
votes
2answers
42 views

Understanding ng-repeat for array of Objects

I have the following array of objects, which is a server response. I am trying to use ng-repeat to iterate over this array and read each value. While trying to use in html, array[0].value is working ...
0
votes
0answers
12 views

Ionic external links

What would be the best way to run external links within ng-repeat element <ion-list ng-repeat="studio in studioanzeigen"> <ion-item class="item-thumbnail-left" href="#" ...