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
1answer
14 views

angularjs/ ng-repeat result prints not what i expected

when i put some data and see the result, it is shown like the picture below. ng-repeat result I was expecting like this: kim 88 99 100 park 56 89 77 am i using ng-repeat directive wrong? or is ...
-2
votes
0answers
13 views

How to display multiple google maps screen using angularjs and ng-repeat?

I want it to look something like the below image. The value of lat and lng will be received through an API call. Please let me know how can this be achieved using angularjs.
0
votes
1answer
14 views

I can't get json data with ng-repeat in my ionic app

I'm a newbie so please explain step by step as you can. I face a little problem in my ionic app, I can't get json data from the link. I can see json data in log console but in ng-repeat didn't ...
0
votes
2answers
15 views

Create multiple buttons with Angular in a loop

I have a variable "options" that contains a list ['a', 'b', 'c'], and like this is displayed on the <h3> below. Now I want to create a button for each element in the list, with the index ...
0
votes
3answers
45 views

Getting one item out of ng-repeat

I have a homepage with different products and I want to display one choosen product in anouther view. (the detail view). To show the products I use ng-repeat, which iterate over an product-Array. Now ...
1
vote
1answer
18 views

Angularjs : How to use <md-radio-button> inside <table> with ng-repeat

I am displaying data as a table. The user has to select a row from the table. So I tried using <md-radio-button>, But it is throwing an error saying <md-radio-group> directive is missing. ...
0
votes
5answers
45 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":...
0
votes
0answers
14 views

Animating using animate css and ng directive in Angular js is not working

I am developing a Website using Angular JS. I want to beautify my website adding animation. I am using Animate css - https://daneden.github.io/animate.css/ cause it has rich built-in animation ...
0
votes
2answers
58 views

ng-click inside ng-repeat not working

I am using routeProvider to route to "views/userspace.html" which uses "UserspaceController" The "views/userspace.html" recognizes this controller and makes request a $http request. This request ...
4
votes
1answer
54 views

Angular ng repeat filter inside ng repeat

I've been trying to make a list of geozones, with a select of taxes each (not all taxes apply to all geozones). So I did a ng-repeat for the geozones, and inside each of them a ng-repeat with all ...
0
votes
2answers
25 views

how to pass object data to table using ng-repeat

I have this object named 'SEG-Data as follows. I am trying to put this data into a table form using ng-repeat. SEG_Data Object {ImportValues: Array[2]} ImportValues: Array[2] 0: ...
1
vote
1answer
19 views

Angular filter on object property inside an array

I am having an array of objects inside the $scope. The object has the name and 'attributes' property of which the attributes is an object. I have a text field which I need to bind to a model which ...
0
votes
2answers
49 views

How to add the values which is present inside the array (or) Json?

I been wondering if someone fixed my issue. my code looks like this. var app = angular.module('myApp', []); app.controller('myCtrl',function($scope){ //Adding New Check# and Check amount Text ...
0
votes
1answer
32 views

AngularJS ng-repeat carousel without jQuery

I need to show elements on my page using ng-repeat that will behave like carousel - they should contain a photo, short description, and on click each of them should show long description. Additionally,...
0
votes
0answers
8 views

How to make the selected value as active?

<ul style="list-style:none;" class="dashboard-list"> <li ng-click="get_role(role)" ng-repeat="role in roles"> {{role.name}} </li> </ul> So here i will get a list of data. ...
1
vote
2answers
42 views

Why ng-repeate object not getting updated?

This is the function which load listings from server. Initially listings are displayed but when gets null response on applying filter, it still shows previous result and not clearing previous listings....
0
votes
1answer
19 views

Drop down value replicates in nog options Angular

I have a dynamically generated html table that adds rows based on the record that is displayed. I'm adding a column that will contain a dropdown. I used ng-options for it, however every time I ...
0
votes
3answers
26 views

angularjs textarea model with \n should start new line

I have sample json as shown below and I am trying to represent key in label and value in textarea (Plunker). But the textarea is not working if the model contains "\n". Whenever there is a \n I would ...
-1
votes
0answers
36 views

How to make table for nested ng-repeat?

In below code each nested div has ng-repeat i would like to know how to create html table structure or bootstrap table for nested ng repeat ? <div ng-repeat="item in names.items"> <div ...
0
votes
1answer
49 views

need to use ng-repeat on object properites [duplicate]

I have the following object. $scope.sampleObj = { "id": 10000, "transactionid": "gec43434", "status": "COMPLETED", "session_id": "TTYUU455667" } Now I need to show this object ...
1
vote
2answers
25 views

ng-src in ng-repeat not updating

i'm totally new to angularjs, and here i'm trying to do is getting a img id from ng-repeat and pass it through a function and getting return a image string, but it shows some kind of errors. please ...
0
votes
0answers
18 views

init variable in ng-repeat's root scope

I want to know how can I initialize a variable in the ng-repeats root scope as I explained in the below block diagram. I should able to access the same variable in the filter that i am using as part. ...
0
votes
1answer
14 views

AngularJs Assign Json value to multiple scope

Hi I have two form in one page one for reference of previous data and one is a actual form. So i have to assign same json(which actually are come from database) to two different form in a page. I ...
-1
votes
1answer
29 views

Need to do refresh for displaying array that coming in json data and displaying through ng-repeat

I am receiving a response from backend and saving in "allinfo" varable in my controller. Response data receiving is: name of person, DOB of person and Hobby of person. Hobby of person is array which ...
1
vote
0answers
25 views

Angular Binding field to Dynamic model modifies all values in object

So I have this code in view: <div class="form-group" ng-repeat="columnHeader in form.table[fakeForm.currentFormIndex].columns track by $index"> <label for="">Column <...
0
votes
0answers
5 views

OrderBy in dirpaginate

I have the following code to populate the table:- <tr dir-paginate="user in newBillValue|filter:search4|orderBy:['bill_time','bill_id']|itemsPerPage:10" pagination-id="NewBills"> I want the ...
0
votes
2answers
29 views

AngularJS form field in ng-repeat and sum column

I have dynamic form fields like this: <div ng-repeat="wspStaffTbl in staff_codes"> {{wspStaffTbl.Staff_Type}} <input type="text" ng-model="wspStaffTbl.Permanent" ng-change="...
0
votes
1answer
21 views

How to Pass the data from Main Window to Child Window to display large data in table using AngulaJS

Hi Currently my main intention of the question is avoid displaying large data in the <td></td> . So instead of that I want to display the data in the new window by clicking on the element ...
1
vote
1answer
20 views

Having trouble with ons-list and angular ng-repeat

I declared a very simple component called betroomList: (function () { 'use strict'; angular.module('betfriends') .component('betroomList', { templateUrl: 'src/home/betroomList.template....
2
votes
1answer
15 views

angularjs ui-select to capture the key only not the value in dropdown live search

I am filtering the dropdown menu by typing in the box, and capturing the key into my model. It is working fine! However, the problem is as I type, the selection is not being narrowed down. where is ...
2
votes
1answer
42 views

Using nested ng-repeat with object arrays angular

Here is what I am trying to do: <tr ng-repeat = "data in tabularData track by $index" > <td ng-repeat ="(key,value) in usedAttributes" >{{data[key]}}</td> </...
0
votes
2answers
33 views

ng-repeat into rows without using boostrap

I once again turn to StackOverflow for help on this one. I am fully aware how to do this with Bootstrap, however I would like to do it only with Ionic if possible (not been able to find anything ...
1
vote
2answers
45 views

AngularJs ng-repeat : how to bind the values from <input> which was inside the ng-repeat?

var app = angular.module('myApp', []); app.controller('myCtrl',function($scope){ //Adding New Check# and Check amount Text Boxes $scope.texs = [{id: 'tex', value: 'tex1'}]; ...
0
votes
1answer
28 views

How to remove extra added row for generated JSON on button click either using AngularJS or JavaScript?

I am performing few operations like Add and Remove for my two JSON files data. My requirement is that I need to add respective json names and show them in the table and then need to generate json ...
0
votes
1answer
25 views

Angular ng-messages inside custom directive inside ng-repeat wrong behaviour

I have same problem as described in this toppic: Angular JS ng-message inside directive Unfortunatelly that solutions is not working for me, because I am using my custom directive inside ng-repeat. ...
0
votes
3answers
42 views

Getting ID of the first item only on using ng-repeat

So here's my workflow- I've got an HTML file in which a div tag is created on which I've placed ng-repeat which iterates and gives me a list of items. On this div tag, I've placed an ng-click ...
1
vote
1answer
48 views

Increment $index in ng-repeat

How should the $index in ng-repeat be incremented by a specific value? For instance in this fiddle http://jsfiddle.net/Lvc0u55v/11811/ the value needs to be displayed two at a time. So the next ...
1
vote
1answer
22 views

ng-repeat sorting one column with two, exclusive JSON variables

I have a JSON with two variables User and First_User. First_User is only interesting if there is no User (who will appear over time). I create a Table with ng-repeat and succeed to amend my JSON: if ...
0
votes
2answers
23 views

Use / modify array of objects to use in ngRepeat for dropdown list

I am trying to use an array of objects to show in a drop down list. Here is the json file { "list": [ { "product": "Test1 ", "Name": "Test 1 Name", "countries": [{"countryId": 53,"countryName": "...
1
vote
1answer
77 views

AngularJS Firebase database ng-repeat filtered data into ngtable with ngTableParams

I filter one Firebase database based on another and concatenate the result into one $scope and ng-repeat the $scope array projectslist in a ngtable with ng-repeat="obj in projectslist", which works ...
0
votes
0answers
24 views

how can get ng-model value within ng-repeat on directive?

I want's to get the value of ng-model within the the ng-repeat on my own directive and use the value of that ng-model in the directive for a fuction. here is a plunker to see code in action : https:/...
0
votes
1answer
38 views

Iterating over ng-repeat with inline array updates all objects in array

in AngularJs I have two arrays: One with weeks and one with occupancy-numbers. Now at first I'm iterating over the week-array in a table: <tr ng-repeat="week in weeks"> <!-- content for ...
0
votes
3answers
57 views

how to assign default values to dropdown from backend response

I have a local $scope.countries in my html where I populate country state city , But instead of select as default values in dropdown , I need to show the country state city values coming from backend ...
0
votes
1answer
60 views

AngularJS: Iterating over object properties and two way binding

I want to loop over an object's property. Also, there should be a two-way data binding so that any change will change the Object as well. Both key and value of the object property can be changed from ...
1
vote
0answers
50 views

ng-repeat, link item with another arrays item

I am trying to create unsorted list (organizational structure) from two data arrays (department, employees) I use ng-repeat to dynamically display the departments however I am unable to populate each ...
0
votes
2answers
78 views

How to filter the JSON data using AngularJS?

I have three dropdown boxes. I need to filter the data and need to be displayed in the table based on my checkbox selection(either with single checkbox or two checkboxes or three checkboxes). I have ...
0
votes
1answer
13 views

Filter ng-repeat using object property

I have an array as like as given below: $scope.athletes= [ { name: 'name 01', measurements: [ { type: 'date' }, { type: 'info', value: 23, rank: 1 }] }, { ...
0
votes
2answers
38 views

Based on country selected , need to populate state and city

HTML: <label for="country">Country *</label> <select id="country" ng-model="statessource" ng-options="country for (country, states) in countries" ng-change="...
3
votes
2answers
48 views

Angular js ng-repeat duplicate items

I have little problem with my ng-repeat $http.get("/test-server/rest/servizi/listaRuoli") .success(function(data){ $scope.servizio = data; console.log(data.label); }) &...
0
votes
1answer
29 views

How to do ng-repeat on $firebaseArray output with multiple levels?

I am using $firebaseArray for collecting the data from Firebase. Output is as follows: [ { "BankAccount": { "AccountHolder": "Tom Antony", "AccountNumber": "56767887" }, ...