The ngRepeat directive is a built-in component in AngularJS, and instantiates a template once per item from a collection.

learn more… | top users | synonyms

3
votes
4answers
41 views

How to avoid hard-coding url names in HTML with ng-repeat

Before explaining the question I would like to throw a bit of my HTML code <div ng-repeat="item in employeeNames"> <span> <img ...
1
vote
1answer
29 views

How to update select option value when ng-click ? Angularjs

I have a Working Select Option with few values which are filtering data for search. Now i need few links beside as Sidebar which is helpfull to directly click and change the above Select Options ...
0
votes
0answers
6 views

angularjs ng-repeat issue, need to remove repeated text

i have a problem with ng-repeat. i have json data. Search": [ { "DepartSelected": "Delhi,India-DelhiIndiraGandhiIntl(DEL)", "ArrivalSelected": "London,UnitedKingdom-Heathrow(LHR)", "DepartCFN": ...
0
votes
1answer
19 views

how to show different pop up on click of button in ionic?

I am trying to show some modal pop up on a button click. I am able to display pop up but I am trying to display different pop up on the button click. In my code I take different HTML of pop up but ...
0
votes
1answer
20 views

Iterate on ng-repeat

Im trying to figure out how the variables are called in angular. Im new to angularjs and cant seem to figure out why in the first example we are iterating in the ng-repeat 'group in $groups' and in ...
0
votes
1answer
25 views

Angular js, Unique filter is not working

I'm trying to apply a check box filter to a list, but the options for the check boxes should also be come the list of items only, it works fine if i am iterating it for all the check boxes, the ...
0
votes
2answers
47 views

ng-repeat add conditional class to one element

I am building simple quiz app and I want to add correct or wrong class to element inside ng-repeat for CSS styling purposes. JS: $scope.checkAnswer = function (answer) { if (answer == ...
0
votes
0answers
19 views

binding to related data/lists in angularjs ng-repeat rows

I have a page that displays a couple of lists from a REST service built on nodejs and mongodb. On the client I'm using angularjs for directives, data binding, etc. In this case I'm having trouble ...
0
votes
3answers
23 views

2D arrays working in Angular JS 1.2.x and not in 1.3.x

I wanted to write a simple loop in Angular for 2D array as follows: <!DOCTYPE html> <html ng-app=""> <head> <meta charset="ISO-8859-1"> <title>Angular 2D ...
0
votes
2answers
39 views

checkbox options = select options - angularjs

I have successfully populated Designations to select option through Json and now i wanted to create multiple checkbox filter to my search results.. Here below is the working code for select option ...
0
votes
1answer
44 views

why “undefined” show in angular js?

I am getting undefined in console .log.I am trying to get get data from my view .could you please tell me why it is not showing the model data .I will explain thing in other words I have this in my ...
1
vote
2answers
33 views

How to bind view to multiple controllers in angular js

I have two contollers on web page ParentContoller and ChildContoller. How do I pass value from ParentContoller.js to ChildContoller.js. I can bind that value on view from parentContoller to child ...
0
votes
0answers
11 views

How to make a “Layout Template” for this html code?

i'm about to convert a static html SPA to dynamic with AngularJS, but can't realize how to make the "Layout template" for this piece of code: <div class="container"> <div ...
1
vote
0answers
7 views

wowhead_tooltips inside Angular ng-repeat

I'm using Laravel 5 with angularjs Trying to loop through jsonp reply showing World of Warcraft wowhead_tooltips and have come to a problem I cannot decipher. Snippets included below. wowhead script ...
0
votes
1answer
32 views

Angular.js: Create 2 html containers using ng-repeat

I have a list of items, and I'd like to split each half of the items in it's own container. How can I accomplish this using ng-repeat? <div> <ul> <li>Some ...
0
votes
1answer
30 views

Angular JS: show item only if ng-repeat has members?

I have json data where a series of objects have an array "options". Some items have items in this array and some don't, as in { "label": "ORDERS", "enabled": true, "selected": true, ...
1
vote
2answers
41 views

Nested JSON in one ng-repeat

I'm somewhat new to angular, and i'm having problems with ng-repeats. I have one ng-repeat that have to show nested objects in each repeat. You know what I mean? This is the HTML: <li ...
-1
votes
2answers
38 views

In angular, generate dynamic html content with ng-repeat

My question is about generating dynamic html content with ng-repeat that contains multiple ng-model instances stored in an array. But I get a syntax error for {{ in ng-model. Is it possible ...
1
vote
2answers
24 views

Mapping array items to repeated list

Here's an unsophisticated version of what I want to achieve: $scope.colors = [{ "Name": "Red" },{ "Name": "Orange" },{ "Name": "Yellow" }]; <ul> <li>{{colors[0].Name}}</li> ...
-1
votes
2answers
34 views

updating text on view from ng-repeat

I have problem with updating view by using ng-repeat. When click on text, it doesnt update but it overwrites below. (I want have panel with names(links) and show its description on view) I have ...
0
votes
2answers
16 views

How to order ng-repeat with a function a use button to change the order parameter in angularjs

I have a little bug while trying to use angularjs table. tr th a(href='', ng-click="predicate = 'id'; reverse=!reverse") Id th ...
0
votes
0answers
42 views

Duplicate key in ng-repeat when grouping

I am using the following angular-filter to group my images by fullday. With the setup as below, I get the error: ngRepeat:dupes Duplicate Key in Repeater Duplicates in a repeater are not ...
0
votes
2answers
36 views

Nested ng-repeat with <tr> <td>

I have my JSON data like this: { "results": [ { "Header": "header1", "Sections": [ { "Name": "sec1" }, { "Name": "sec2" }, ...
0
votes
1answer
15 views

How to calculate a dynamic value with ng-repeat for a nested object property in AngularJs

I want to calculate taxes in relation with a user-input that correspond to the price. I have no problem when I don't use ng-repeat. But I can't figure out how to make it works with ng-repeat. For ...
0
votes
0answers
22 views

IonicJS very slow performance with many ion-slide-box controls

I'm creating a simple app that lists users in a table and let's them swipe left or right on their icon to sign in or out. I'm using the ion-slide-box control for this, but it is very slow to render ...
0
votes
0answers
22 views

Angularjs ui-select multiple ng-repeat filter

I have an issue with ui-select multiple in AngularJs. The thing is that I can't properly filter a list with ng-repeat. I have a list of musical instruments, a list of countries and a search input ...
0
votes
2answers
29 views

Converting string to array using filter and using it in ng-repeat

I have a string which is in "1200:2,1300:3,1400:2" format. I need this to be printed like <p>1200</p><p>2</p> <p>1300</p><p>3</p> ...
1
vote
1answer
38 views

How to update item in Model array in different scopes, and have changes reflect everywhere?

I have a parent $scope and child $scope. When the child view is loaded, I make a GET call to retrieve JSON data (an array of hundreds of objects), which I then pass to the parent $scope. Now in the ...
0
votes
4answers
19 views

How can I display one attribute of a set of data just once?

I'm doing some testing with Angular to see if I can replicate what I already have in PHP more efficiently. I have a set of data stored in JSON: [ { "name":"Blue Widget", ...
0
votes
1answer
27 views

How can I switch between two div depending upon the value of a scope variable?

I have an issue that I want to switch between two divs depending upon value of a scope variable. The scope variable is updated at run time and I want my view to be updated at run time. The problem is ...
0
votes
1answer
23 views

In-app browser won't load page

I've recently tried creating an in-app browser function on my app. The function works except it won't load the page. I've created an array in the JavaScript containing the url's and then I have ...
0
votes
3answers
46 views

How to display this list in AngularJS

{ "code": 2001, "message": "valid devices", "results": [ { "event_type": "active_devices", "receivedtimestamp": "Thu, 12 Mar 2015 04:35:05 GMT", "sendtimestamp": ...
0
votes
1answer
24 views

Get value outside ng-repeat angular

I have something like this (based from Show value outside the ng-repeat): {{ Brands[?].BrandDetails.Text }} // i want show element selected value <li ng-repeat="Brand in Brands"> ...
1
vote
0answers
26 views

AngularJS - Getting value of radio inputs where multiples exist

I am trying to build an extension to a form using AngularJS whereby a series of set, fixed values pre-exist, whose values correspond to parameters which are passed through to a controller. Once these ...
1
vote
3answers
49 views

Angular filter in ng-repeat with deep object

I am following this question to filter ng-repeat by a field ng-repeat :filter by single field However my case is different, it's actually a field in the object value of the main object. Basically I ...
1
vote
1answer
39 views

Angular JS ng-model is not working properly for array of array

My requirement I should have two multiselect comboboxes Should be able to select multiple value Based on the selected values from combobox1 the second combobox should should populate the values ...
1
vote
2answers
35 views

How to update ng-class based on ng-change?

I have an ng-repeat that creates several widgets, each with it's own select dropdown. <div ng-repeat="item in widget.items" class="col-md-6"> <select ng-model="item.chosenTag" ...
0
votes
2answers
25 views

How to get changed value of a select in Angular - Without updating a global model?

I have several widgets which are generated from JSON data and an ng-repeat. Inside this widget is a select dropdown. I'm able to call a function in my Controller with ng-change, however using ...
0
votes
1answer
22 views

finding which checkbox is clicked or checked in nested ng-repeat AngularJS

I have a list of parent check boxes with list of sub check boxes within each parent check box. With parent check-box a data-info="category" attribute is attached and with child check-box a ...
0
votes
1answer
33 views

Set css property of an element after ng-repeat is finished (with working demo)

I have a page, where on the right side I have a table (file list), on the left side I have a filetree (above), and preview image (below). The point is, the preview image should always stick to the ...
0
votes
1answer
28 views

How to add ng-class based on multiple variable comparison?

My select dropdown, needs the class of btn-success if 2 variables form a JSON object != null. What I've tried so far which isn't working, basically if term.tag and term.id are not null, add the class ...
0
votes
1answer
23 views

How to add selected attribute to ng-repeated dropdown form?

I have a form that builds out multiple widgets based on some JSON data. In part of that form is a select dropdown, and some items have different options selected by default. ie: object 1 { tag: ...
0
votes
1answer
47 views

ng-repeat isn't iterating over array

Simplified HTML: <div ng-repeat="transfer in transfers"> <table class="table"> <thead> <tr> <th translate>Description {{ ...
0
votes
2answers
37 views

Array filter cause infinite $digest loop

I have two collections of objects. One of them have objects with primitive values, another one with objects values. I need to render collection in html table with dynamic columns. I have made a ...
0
votes
1answer
19 views

ng-repeat variable not getting sent into controller

I have an ng-repeat that takes data from a JSON call and builds several widgets on the page. Each widget has a form button which is suppose to grab the id and name of the data object that generated ...
0
votes
1answer
28 views

AngularJS ngRepeat with isolated scope directive

I am working with AngularJS, I have created a directive which has isolated scope. Directive is working fine without inside ngRepeat. When I use directive inside ngRepeat it creates its siblings and I ...
0
votes
3answers
52 views

How to use ng-click in ng-repeat?

I am new to Angular JS and I am trying to use ng-repeat to generate multiple row in my table, and in each row there should be a button to trigger a function with different parameter <div ...
0
votes
0answers
13 views

Can I remove angularjs markdown from source code?

I'm just starting out with using Angular JS and my first app is working really well. However, when I view the source of the page, all of my angular template is returned with the markdown: ...
2
votes
1answer
38 views

$index inside ng-click not print a number

I create ng-click inside ng-repeat and I want to change a variable currentpage with $index value. But it is not work properly, $index print as a string not return a number. This is my code: <li ...
1
vote
1answer
39 views

ng-if Function Gets Called on Click

I have my code on Plnkr: http://plnkr.co/edit/6wz4zub2sEOfhrqps0c8 The html code is quite simple: <div ng-app="myApp" ng-controller="MainCtrl"> <div ng-dropdown-multiselect="" ...