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

0
votes
2answers
33 views

ngRepeat error with calling a function

I've an array and I'm looping over this array and calling a function into this ng-repeat and this function is in link function of a directive so my problem is, ng-repeat looping only twice (length of ...
0
votes
1answer
18 views

How can I combine these custom filters?

Im trying to create a filter mechanism using this code, which works perfectly (independently): // Report Filtering $scope.filter = {}; $scope.getCategories = function () { return ($rootScope....
0
votes
1answer
24 views

Angular ng-repeat in table, adding extra rows

I'm repeating the contents of a array using ng-repeat with Angular. After that, but in the same table, I want to add some extra rows with info. But because it is in the ng-repeat I get an angular ...
0
votes
0answers
15 views

How to use nested form inside uib-tab in angularjs

I've used uib-tab and ng-form with ng-repeat. Each tab should have distinct form values But it gets overlapped. Kindly help me to have separate form models with same form attributes. angular....
0
votes
1answer
34 views

AngularJs - ng-repeat not displaying data

Can someone advise why the following is not working. Controller: (function () { 'use strict'; angular .module("shop") .controller("CartSummaryController", CartSummaryController); function ...
0
votes
2answers
29 views

angularjs optimize ng-repeat with many ng-if ng-show inside it

I use AngularJS to create a page where a user can correct a text ( for example grammar, typo ... ). I cannot use a Textarea because i want to keep trace about changes and let user rollback a ...
1
vote
0answers
26 views

ng-repeat=“todo in todods” How do I access 'todo' outside of ng-repeat?

I can only access the clicked 'todo' within ng-repeat. In order to access it else where, for example within the col-sm-8 div, I have to pass it into my controller. Once I pass it in my controller, I ...
0
votes
1answer
12 views

Angular, ng-repeat to create multiple sets of radio buttons

I am trying to create multiple sets radio input options with ng-repeat, however, it seems that when the elements are being created, they are not given the unique ID I intend ( "id":"1", "id":"2" or "...
0
votes
1answer
14 views

Ng-repeat animation not working in IE11

I have this ng-repeat code, but not working in IE 11 <div class="cardSegmentation moveUp" style="animation: moveUpA {{ (0.5 + 0.1 * $index) + 's' }} ease forwards;animation-delay: 400ms;-webkit-...
0
votes
3answers
23 views

Ng-repeat - filter out by object's constant property with different values

I am trying to solve a ng-repeat issue. I can see 2 ways to solve it 1. Using a filter to not repeat/display the object's property of category, which I am not sure how to do without using it's value ...
-3
votes
0answers
18 views

want to arange the data accourding to date in ascending order in angularjs

I have to arrange status(P,A) according to date in ascending order but it showing me in same order as they are inserted. but i want to arrange accourding to date. $scope.students{ "name": "...
1
vote
2answers
40 views

Ng-if wont render ng-repeat on the screen

I am taking a numerical input from user. I'm asking how many number of people do you want? Lets assume the user entered 3. Each "people" have a firstname and a lastname. As soon as the user enters ...
1
vote
2answers
41 views

angular add property to model

I have an angular service that returns a list of items from the database. I display those items through an ng-repeat. I'd like to hide/show each one of them using the ng-show. Is it a good practice ...
-2
votes
1answer
45 views

Handling for loop in angular js

I have a below JSON response, I need to populate my role information based on the role selected, I just moved roleinformation in roleInfo array , but the problem is I am unable to populate the key and ...
0
votes
1answer
45 views

Using multiple ng-repeat

<table class="table table-striped"> <thead> <tr> <th>#</th> <th ng-repeat="header in headers">{{header}}</th> </tr> </thead&...
0
votes
3answers
30 views

Display data in ng-repeat once

I have a json file like this: [ { "id": "1", "name": "John", "country": "Philippines" }, { "id": "2", "name": "Marsha", "country": "Philippines" }, { "id": "3", ...
0
votes
1answer
15 views

Printing array of objects in table (Angular JS)

I have an array of objects like this one: $scope.sales = [ {id: 15, location:'neverland'}, {id: 16, location:'farawayland'}, {id: 17, location:'highland'} ]; This array I am trying to display in a ...
1
vote
2answers
19 views

angular text input adds values to repeated text inputs

I have a series of comment inputs that repeat. When I start typing in one, all inputs are populated with the characters I am typing. How do I have the text input value only populate in the text ...
0
votes
3answers
28 views

Split a string from JSON and display it in ng-repeat

<div ng-controller="countryCtrl"> <div class="m-b-20" ng-repeat="val in records"> {{val.Country}} <br> </div> </div> var app = angular.module('app', []) ....
0
votes
2answers
34 views

Taking key as Value from json response

JSON: { "json": { "response": { "servicetype": "1", "functiontype": "10011", "statuscode": "0", "statusmessage": "Success", "data": ...
0
votes
1answer
23 views

Multiple sets of radio button with ng-model and ng-repeat

I'm very new to Angular and I have some issues with setting the default option on my radio buttons. I have already checked the other answers and using $parent does not solve my issue or I'm using it ...
1
vote
1answer
33 views

ng-repeat $index for a form field array (ie add new option)

I have two select fields using ng-repeat method I was adding (clone) the inputs. I was two different array to maintain to push and remove the object. But I need to maintain in single array is ...
3
votes
3answers
44 views

ng-repeat with dynamic ng-include and template variables scope issue

When ng-repeat is having dynamic ng-include with variables, it is not taking variables properly. See this plunker. main html code <table style> <tr> <th>Student</th> ...
0
votes
1answer
37 views

handling json response Array

I have a json response as given below from backend JSON: { "json": { "response": { "servicetype": "1", "functiontype": "10011", "statuscode": "0", "...
-2
votes
2answers
49 views

ng-repeat=“(key, value) in item in arr”?

I have map of key/value pairs that look like so: $this.colorsHash = { '05/04/2015': { sum: 540, color: 'rgb(176,145,219)' }, '05/10/2015': { sum: 379, color: 'rgb(161,111,107)' }, '05/13/2015'...
0
votes
0answers
39 views

Handling Json Response

JSON: { "json": { "response": { "servicetype": "1", "functiontype": "10011", "statuscode": "0", "statusmessage": "Success", "data":{ ...
0
votes
1answer
31 views

ng-repeat on model object defined in nested directives

While I was learning the last example in Angular official document --- directive section. I ran into the following problem: I modified the generation of panes in a data-driven way, which means I used ...
-1
votes
2answers
49 views

angularjs ng-repeat and create two tr

Im creating a toggable element. Im in need to create two tr`s for each ng-repeat. i want the result below, when clicking the first tr, then it will show the second. How can i create two tr-`s for ...
0
votes
0answers
39 views

Handling Json response dynamically in angularjs

Json: { "json": { "response": { "servicetype": "1", "functiontype": "10011", "statuscode": "0", "statusmessage": "Success", "data":{ "roleid": 36, ...
2
votes
2answers
45 views

Function that already running don't call it next time

I am working on AngularJS project I am using ng-repeat to show data, There is a Edit button that enable editing for particular row. On edit button click there is Save and Cancel button shows. On save ...
2
votes
2answers
38 views

Issue with filtering an Angular Table td

I have a table created in angularJS. HTML: <div class="widget-content" ng-controller="getAllBenchersController"> <table ng-table="talentPoolList" show-filter="true" class="...
2
votes
1answer
36 views

Unable to display names and perform edit for json data in angularjs?

I wanted to do some crud operations for my json data. But I am failing: to display the names(I am getting 0, 1 and 2 instead of my actual names: Main1, Main2 and Main3) on Edit option: I am unable ...
0
votes
1answer
54 views

AngularJS performance issues with ng-repeat

I have an Angularjs application with ruby-on-rails on the background. When I make a http get request and I get it back is fast and I have no trouble with it. The problem comes after I already got the ...
0
votes
3answers
44 views

How to get json keys using angularjs ng-repeat?

I have a json and I want to iterate and get the json keys: Testing01, Testing02 and Testing03 on my ng-repeat for my given json. How can I get it using ng-repeat ? Please let me know and thanks in ...
0
votes
2answers
32 views

How To Access Loop Variables in Angular NgRepeat

How can I do console.log(childResult) in the code below? In general where/how can I learn how to access ngRepeat scope(s) variables... NOT those in respective controller (it seems easy)... but esp I ...
1
vote
0answers
29 views

Applying sort and filter to an Angular table

I downloaded an Angular demo app to learn and work my way through Angular basics. I am having issue with applying a filter and sort to a data table. I made it by referring some examples and not sure ...
0
votes
1answer
19 views

I am using MVC 4 and angularjs in this actually I want to call an angular js function on page load

i want to invoke angularjs function (DeptSpecific) on page load and am passing ID as the parameter which is hard coded. And that i am passing via ng-init="DeptSpecific('1')". I am learning angularjs ...
-1
votes
2answers
36 views

Why does adding an ng-repeat to my AngularJS template break it?

I have an AngularJS directive whose template file looks like this: path/to/myDirectiveA.template.html: <tr> <td bgcolor='#7cfc00'>Statement</td> <td bgcolor='#ff1493'>...
0
votes
1answer
13 views

how to do ng-repeat with hashmap

I am trying to display my data on ionic/angular with hashmap using this hashmap, my data is very simple: set methods: tables.set(1, "string one"); tables.set(2, "number one"); <ul> &...
0
votes
2answers
27 views

How to get the text in a dynamic text box of a form in Angular Js?

Thank you. In my form there are some dynamic input text boxes created by using ng-repeat. How to get the values of these text boxes when submit the form using Angular js? <form ng-submit="submit(...
0
votes
0answers
30 views

Get JSON array object specific Id depending on which item i click on AngularJS

So i have a table with a list of teams, what i want to do is when i click on a team name it displays a new view with team details. There is 2 controllers, 1 to get league table and fixtures and then 1 ...
0
votes
1answer
14 views

Display data from JSON to Text view using ng-repeat and ng-model data conflict

I have an API code that can generate this particular result: [ { "devid": "3", "name": "abacus", "type": "math device", }, { "devid": "4", "name": "beaker", "type": "...
1
vote
2answers
23 views

Display data from JSON to TextView in AngularJS

I have a json file with this values: [ { "id": "3", "name": "abacus", "type": "math device", }, { "id": "4", "name": "beaker", "type": "science device", } ] What I ...
0
votes
0answers
16 views

ngTransclude creates Scopes it does not delete in ngRepeat

I'm trying to create a list where I repeat items in a collection from component ctrl, and the repeat (<li> in this example) should transclude its innerHtml from a slotTemplate. Like so (list....
0
votes
4answers
28 views

getting value of inputs created by ng-repeat

I created a radiobutton input but struggling to get the values of selected inputs. this is the radiobuttons input I created <ul ng-repeat="item in riskModel"> <li> <input ...
0
votes
2answers
38 views

how to open dropdown in angular js?

can we open the dropdown when it focus using tab keyword .I want to open the drop down while using tab navigation . Example if I am in input field (focus to input field ) then if I press tab focus ...
2
votes
1answer
31 views

simple filter out objects with a certain property integer value angular

I want to filter out all objects with quantity less than 1 and I had to make a custom filter in order to achieve that. I was hoping that there was a simpler solution to the problem than a custom ...
0
votes
1answer
62 views

dynamically created object with ng-repeat - want to default that checkboxes are selected

so there are a ton of references in StackOverflow in relation to ng-repeat and checkboxes. However, I have tried them and still can't get this to work. What I am trying to do is that on click of {{...
0
votes
0answers
24 views

Want to enable two different functions for 2 clicks of a same button

I have a button in angular which is populated inside a table using ng-repeat. My table is : <div class="widget-content" ng-controller="getAllBenchersController"> <table ng-...
0
votes
0answers
13 views

Angular ng-repeat item filter

I have an array of menu items that I am trying to display based on user permissions. Each menu item has a property group which is a group number the menu item belongs to. Items should be shown in ...