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

3
votes
0answers
301 views

AngularJS - ng-repeat & filter comparator not exact matching to query string value?

I have several dynamic pages that follow a simple query string pattern: "...com/directory/my-post-title?id=#" where hash is a digit defined in a JSON file, assigned at creation. There are no ...
2
votes
0answers
43 views

Inserting ng-repeat into DOM on-click and having it render

I am trying to insert an ng-repeat into the DOM and then have it render based on an array I am passing to $scope for the view's controller Controller: angular.module('myApp') ...
2
votes
0answers
43 views

How to create or return seperate scope from function in ng-repeat directive

Base Code: <tr class="" ng-repeat="row in resultOfFiltering"> <td class="{{result[1]}}" ng-repeat="result in createTableBody(row)">{{ result[0] }}</td> </tr> ...
2
votes
0answers
111 views

Data from UI updating with delay - ng-repeat (ngAnimate issue)

I have the following problem and I would need some opinions about the possible causes/solutions of it. I have a table with its body containing an ng-repeat <tr data-ng-repeat="product in ...
2
votes
0answers
351 views

angular bootstrap tabs - select function called in page load

I have the angular bootstrap tabs in the following format. (see the plunker) The select function is supposed to trigger when the tabs are selected. But strangely, when the page is loaded, the very ...
2
votes
0answers
102 views

AngularJS - ngRepeat - override html rendering

i have the following ng-repeat code: <div ng-repeat="item in items">{{item}}</div> is there a way to programatically get into a javascript variable the 'final' html output of each of ...
1
vote
0answers
32 views

why table header click event not working to firing?

I am trying to sort my column using click event of column header.I am using angular js framework using filter orderBy .I saw a example which is working fine which is sort the column on click of header ...
1
vote
0answers
16 views

Using isotope with Ng-Repeat Angular JS

my question is similar to this Using Isotope with AngularJS (ng-repeat) but I cant seem to get mine to work. i have made a jsfiddle here. http://jsfiddle.net/hendhyhutomo/pn937pbq/9/ Everytime i ...
1
vote
0answers
16 views

Clear application database in mobile using ionic framework-please help to clear this

I want to clear the application database using ionic framework in mobile. I tried clearing the localstore and cookies but this didn't work. Please help me with a solution.
1
vote
0answers
28 views

resetting scope data in ng-repeat error

I'm having trouble resetting a scope model. I am sure I am making an obvious mistake that isn't so obvious to me. <div class="" ng-repeat="comment in comments"> <div ...
1
vote
0answers
71 views

ng-repeat with angular datatable plugin

I have been trying out ng-repeat option with angular datatable plugin (http://l-lin.github.io/angular-datatables). But I have been getting a loading symbol. I tried my code in jsfiddle - ...
1
vote
0answers
118 views

JSON.stringify cannot serialize cyclic structures: iOs9 error for Ionic / AngularFire app

I updated my Xcode today and run my Ionic app on iOs9 build. New error pop up on Xcode console each time I click from a ng-repeat list to a detail view. Error is: error JSON.stringify()ing argument: ...
1
vote
0answers
49 views

Multiple Grids using ngIf and ngRepeat will not update pagination controls and footer from server side paging

We have an issue we are facing where we have tabs of grids and different gridOptions per grid. When tabbing from grid to grid, the data updates correctly, but the footer does not update the total ...
1
vote
0answers
33 views

How to set ngModel in ngRepeat value (AngularJS)

On the code you can see as follows: <div class="form-group form-group-sm" ng-repeat="sForm in sForms"> <label class="col-sm-3 control-label">{{sForm.label}}</label> <div ...
1
vote
0answers
34 views

How do you $watch input in ng-repeat separately and append result to specific row in angular js?

I have two input fields b_price and s_price inside ng-repeat. I need to watch changes in these two models and append estimated. My code snippet: html <body ng-app="testthis" ...
1
vote
0answers
22 views

print each row of a list seperately in ng-repeat

I have a list of data in ng-repeat where i want to print each row in ng-repeat table. here is my code <tr ng-repeat="prescription in patientPrescriptionList"> ...
1
vote
0answers
48 views

Ng-repeat with search filter only works on 2nd character keyup

I'm using a $http get request in my angular application to access data to bind to my view in a loop using ng-repeat and a filter based on a users input value for a simple search. I'm able to access ...
1
vote
0answers
48 views

Looping over ng-repeat list to display items for specific item

I have an ng-repeat that looks like this: <div class="row" ng-repeat="account in accountsView"> {{account.BankName}} {{account.AccountName}} </div> My accountsView looks like ...
1
vote
0answers
56 views

Angular nested menu

Task: Nested menu splitted in two columns on level 0. For example if Level 0 has submenu with more than 3 child split this two two columns if not show single column. var example_data = [{ level: 0, ...
1
vote
0answers
40 views

LimitTo With ng-repeat

I can't figure out why this simple limitTo isn't working with ng-repeat; I just want a short preview of each, but I'm getting some unordered lists with > 30 list items. Any suggestions? <ul ...
1
vote
0answers
56 views

use single ng-repeat scope in multiple div's in page

I want to use ng-repeat scope value in multiple div's. I'm using pagination for one repeat scope on single page. This is my code <div> <div align="left"> <button ...
1
vote
0answers
67 views

ng-init in ng-repeat shows only the last item in Dygraph

I am new to angularJs and trying to implement Listview in it. i am getting a json response after hitting an Api . In that Json i am recieving an array in which i am getting a string of graphdata ...
1
vote
0answers
59 views

stop script warning in firefox on load of directive in ng-repeat

I have a select All functionality into my application. where i have minimum 100 items in loop to select. i am getting every item and add into separate $rootScope variable which is used in ng-repeat on ...
1
vote
0answers
32 views

Length of query-filtered ng-repeat data before limitTo filter

According to the accepted answer to this question, if I want to display the length of filtered ng-repeat data I would do: <div ng-repeat="person in filtered = (data | filter: query)"> ...
1
vote
0answers
112 views

Angular-Leaflet-Directive + JSON markers

Try create Leaflet Map with clustering markers in my app. Using for this Angular Leaflet Directive plugin. It's work with example controller and JSON data, but I have other JSON with other data ...
1
vote
0answers
41 views

Filtered ngRepeat in angular directive

I have a directive which I use as a select box. I would like to have a search field to filter the select box items. I'm having trouble filtering my items using ngRepeat filter. Here is the directive ...
1
vote
0answers
37 views

Angular js Custom ng-repeat end directive not working with dynamically populating models

I have a ng-repeat in a html page which uses a model which gets populated dynamicaly via an api call , .I wrote a custom ng repeat end directive to run some functions everytime when this model is ...
1
vote
0answers
40 views

How do i Selectable continuously table td element onhover cursor pointer in angular Js

My scenario, If i start selecting table td element jan01,feb 01,mar 01 continouly to apri01, apri02,mar 02,feb 02. It's select table td then change class to "cellselect" and selected td element ...
1
vote
0answers
145 views

AngularJS: Infinite Scroll in a container

I'm using ngInfiniteScroll in AngularJS for a specific container. Simple example html <div id="containerInfiniteScroll" class="container"> <div infinite-scroll="next()" ...
1
vote
0answers
34 views

Enumerate subclassed array in ngRepeat

I want a reusable list with my own custom behaviors (e.g. updateOrAppendByItemId) to hold a retrieved array for enumeration via ngRepeat. The main purpose is to hold live collections - contents might ...
1
vote
0answers
51 views

Is there a way could I dynamically generate angular directives at runtime?

I have this crazy idea, I'm building an app with different contents to show, and the contents' data is from the server with websocket, also the directives for showing the data. So I'm wondering if ...
1
vote
0answers
83 views

ng-repeat: filter on object property

The following code is not correctly filtering the results: <input placeholder="search" type="text" ng-model="q"> <div ng-repeat="items in configuration.items | ...
1
vote
0answers
81 views

Angular Nested Comments - Values undefined when submitting form

I am trying to get a dynamic script for nested comments to work. My first problem is that I don't know how I can do endless nesting. For now I planned to do 3 layers, cause I don't know how to make ...
1
vote
0answers
182 views

Angular ng-bind-html makes template rendering very slow

I am trying to output a list of jobs each having their description in HTML, but adding the data-ng-bind-html="job.description" directive makes the template rendering very slow - more than 10 seconds. ...
1
vote
0answers
82 views

Angular Filter a nested ng-repeat

In one of my table columns I have a ng-repeat that I am trying to filter from an input inside a separate ng-repeat <span ng-repeat="title in book.attrs"> <input type="checkbox", ...
0
votes
0answers
25 views

Add, modify and delete entry in angularJS

Please see the image of my application This is my application. i enter the medicine name and it will captured in the items i have 2 concerns First: When i click add without entering any data, ...
0
votes
0answers
40 views

AngularJs how to select multiple items in list and push them in array of object with unique id?

I am Working on this task from 2 days , i am trying to push unique id object into array but it is not working and css also not working for selection and deselection. Here my code below HTML : ...
0
votes
0answers
38 views

Why is the ng-class directive being compiled after my custom directives

Link to plnkr for example explained below: http://plnkr.co/edit/oYvwHnAIvFb4rUqqwsz3?p=preview Hi, I dont understand why angular is compiling my code this way and need some help understanding why it ...
0
votes
0answers
13 views

Filter nested property in back end

this is my Array $scope.projects = [ { "id": 0, "project_name": "CAPSCREEN", "team": { "name": "GEEKULAR", "members": [ "Lucas", "Rios", "Robbins", ...
0
votes
0answers
19 views

Border around content in container created with ng-repeat

So I have a div with content inside that is pulled using the ng-repeat and am trying to put a border and all around it. The content could stretch 1, 4, or even 10 items as shown in image below. Is ...
0
votes
0answers
13 views

How to loop through the data in angularjs and customizing the template via custom directive?

I haven't understood directive in angular completely, and not sure exactly how I'm supposed to pass the value to the ng-model in the template. So, let me just give you what I have. First off, json ...
0
votes
0answers
21 views

how to access dynamic key and value fields while use select option with ng-repeat using angularjs directive

I have mention code and jsfiddle link below. This directive for dynamic select2 drop down element option. Here {{tag.optionKey}} is not get dynamically. for example, if i gave option-key="type", ...
0
votes
0answers
18 views

how to set key field as dynamic in select2 dropdown using angular directive

i want to run dynamic data through ng-repeat and set dynamic key values, like below, in directive scope: K optionKey : '@', optionValue : '@' in my template: ...
0
votes
0answers
30 views

AngularJs : Is it possible to set up data-binding with item selected from ng-repeat?

I am new to web-dev & Angular and am making a little to do app with angular and localStorage using the ngStorage module. I want to make a update function so users can update the contents of a ...
0
votes
0answers
32 views

Not all JSON entries are returned in ng-repeat

Im learning angularjs. So far I have managed to get a table to populate using a standard ng-repeat directive within a single controller. I am using a JSON file stored on github. Result. However, I ...
0
votes
0answers
21 views

TypeError: Cannot read property 'hash' of undefined

I am facing an error while i am trying to call the following angularjs method with id and $event as parameter $scope.gotoLink = function(id, $event) { $event.preventDefault(); ...
0
votes
0answers
28 views

Any way to keep track of indexes in my json object while using AngularJS?

So I have a json file that can be multiple children within a parent so it can get quite complex. I am using ng-repeat to do some basic layouts right now and in some cases I have to keep going to ...
0
votes
0answers
32 views

How to make ng-repeat update view on condition only

Say I have an ng-repeat directive and it displays some data in the table. When I press a button I send the $http API call to the server and it responds with the new data which is displayed in the same ...
0
votes
0answers
12 views

angularjs list item displaying horizontally by using directive

I want to display angularjs material design list . I have used directives to achieve this. The problem is sub list item nodes are rendering in the same line of its parent Node. I want to render in a ...
0
votes
0answers
23 views

Angular Directive addEventListener with ng-repeat

I currently have a directive that adds a few event listeners to an element in the link function. e.g.: ... link: function(scope, element) { // this gives us the native JS object var el = ...