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.
1
vote
2answers
30 views
Angularjs - How to show by default first tab of accordion in ng-repeat
var app = angular.module("myApp", []);
app.controller("myCtrl", function($scope) {
$scope.records = [
{
"Name" : "Alfreds Futterkiste",
"Country" : "Germany"
},
{
...
0
votes
1answer
22 views
Angularjs - How to generate tables column dynamically onclick of ng-repeat element
I m getting such type of response from backend.
[
{
"id": "1",
"name": "Roshan",
"av": "1000",
"compname": [
{
"id": "43",
"cname": "TCS",
"...
0
votes
1answer
36 views
Executing function in ng-repeat give error
I have to run a function during a ng-repeat like this
<tr ng-repeat="x in listaService track by $index">
<td>{{x.label}}</td>
<td><span ng-show="showNoRole(x.label)" ...
0
votes
1answer
14 views
semantic UI dropdown not working with ng-repeat angularJS
Please see the plunker:
https://plnkr.co/edit/YeOJjf6AZyJ7hAfpFfsK?p=preview
In the Plunker, you could see that the color dropdown is working fine but the shape dropdown is not. I am guessing this is ...
0
votes
4answers
33 views
ng-repeat with function to create new objects and avoid [$rootScope:infdig]
plunker preview
I have the main array with information about users. Each item (user) has 'data' array:
{
name: 'Linda',
data: [
{
value: 3
},
{
value: 6
}
]
}
I ...
0
votes
1answer
18 views
ngTable is not working for Data Table plugin
I am trying create a datatable plugin which reflect same as jQuery datatable plugin with single search box. My Data table plugin code using ngTable is not displaying any data and there there is no ...
0
votes
5answers
54 views
Angularjs - How to work with nested ng-repeat
I have following code which is showing data of two person namely Roshan and Ashwin and there is nested array which shows data of there friend name , constant, asalary, msalary etc.
allData = [{
...
0
votes
0answers
27 views
md-table-pagination: page crash after click on pages, options dropdown- per page 100 records
One page contain around 100 records. when i clicked on pages or "md-limit-options" then pages appearing blank (crash).
here is my HTML code
<md-table-container>
<table md-...
2
votes
1answer
39 views
how can i make this filter with ng-repeat
i coding a social media aplication. I have a problem with profile menu in profile page. I want it to be visible menu items depending on certain circumstancesces. I did put menu items in a array like ...
0
votes
0answers
23 views
How fix expanding “table” by angular-vs-repeat while scrolling
Greetings for everyone!
I have tree table with expandable rows to display tree data.
Some of the data items can have very much child items(~3000) and it results to performance issue while using of ...
0
votes
1answer
26 views
Angular Js - Why the call for the first <li> is not going?
I have been stuck for more than an hour and I could not figure it out what is the issue. I have a simple code in which I am using ng-repeat.
<ul class="nav nav-tabs">
<li class="width-...
-1
votes
1answer
27 views
random orderBy in ng-repeat returns [$rootScope:infdig] error
I have a large array of objects which I am printing with ng-repeat which keeps on shuffling infinitely in dom, any quick solution will be appreciated.
Below is the HMTL:
ng-repeat="_video in ...
1
vote
0answers
44 views
Angular dynamic directive attribute not evaluating when used with ng-repeat
I'm trying to pass in a string that comes from a list in my controller which contains the template name that should go get the template dynamically (i.e. template="{{item.template}}")
I've attempted ...
2
votes
2answers
53 views
ng-repeat $index interpolation inside ng-if
In my app I have nested forms, some with fixed names and some with generated names using ng-repeat index:
<form name="rootForm">
<div ng-repeat="child in childForms">
<ng-...
1
vote
1answer
34 views
How to pass or reference item from ng-repeat to another element?
I want to pass a single item/object ('ca') from a repeater to another element (in this case a modal) within the same controller context:
<div data-ng-controller="ContactActionCtrl" data-ng-app="...
4
votes
1answer
73 views
AngularJS - Filter already selected items from ng-select inside ng-repeat
I've found similar questions but no one is having the same problem I'm having. I have a list of localizations that a user can add to (for building their own localization of our UI). They can have ...
0
votes
1answer
14 views
JQuery with 2D array in ng-repeat
I need to get the value of the 2D array on this code using ng-repeat.
<div ng-repeat="n in status">
<div ng-repeat="x in n track by $index">
...
0
votes
2answers
41 views
Multiple (Two) ng-repeats on DataTable in AngularJS
Now I know this is a very common topic but I'm not getting any solutions from the SO questions that I saw till now. I'm currently working on a page that has a DataTable whose data is coming from the ...
1
vote
1answer
36 views
Angularjs: Compile ng-repeat dynamically
I have found some strange behavior with Angularjs. My directive simply adds and compiles ng-repeat to my dom element. However the scope variable item is not accessible. Look at the code below for ...
0
votes
0answers
56 views
Input name is not getting interpolated from {{}} to the value
Below is the attached picture of the form constructor. As you can see it has {{service.name}} in it instead o fthe name itself.
I have a form inside that I have two ng-repeats with custom filters on ...
0
votes
1answer
28 views
ng-repeat filter - Not filtering right?
I am using a filter in a ng-repeat to separate a list of Jsons in two sub-lists: One with Present-past items and other with future items. The json has a key called "dateFrom" which i compare with the ...
1
vote
1answer
19 views
Angularjs - How to show nested array on click of Parent array in ng-repeat
Please refer to this plunkr,
plunkr
WHat I want is
If I click of Reading Korean then it should display its nested part i.e. Vowels,Consonants,Simple Words,Harder Words
angular.module('...
0
votes
1answer
23 views
Angular 1.5.8 Component, get parent context in ng-repeat
I am creating a dynamic menu with ng-click action template is configured in DB.
<ul class="dropdown-menu dropdown-menu-right" id="widget-{{$ctrl.id}}-context-menu">
<li ng-repeat="Menu ...
0
votes
1answer
30 views
show error message after ng-repeat section
I have added a ng-repeat section in AngularJs. I hve added a required field validator. However, the page height increases when all the fields are emptied, as the span tag data shows up.. Is it ...
-1
votes
1answer
32 views
ng-repeat end & start sliding animation
I created this toggle menu template but i have problem implementing this sliding-animation. Can anyone help me?
0
votes
0answers
34 views
nested rest(async) calls with ng-repeat
I have two Rest calls one call is dependant on other .
StudentService.getStudentDetails({"status":$scope.status})
.then(function (response) {
$scope.rowCollection = response;
$scope....
0
votes
1answer
37 views
AngularJS ng - repeat, ng - model on input text strange behaviour
i am new to AngularJS, i try and do the code below
var app = angular.module('SomeApp', []);
app.controller('QuotationController', function($scope) {
$scope.init = function(){
$scope....
1
vote
1answer
33 views
Dynamic ng-model with checkbox in ng-repeat
I have a JSON object like as below with name $scope.permissions
{
admission:{create:false,delete:false,read:false,update:false},
student:{forDelete:false,read:false,viewPhone:false},
...
0
votes
1answer
27 views
how to show nested ng-repeat on click of parent ng-repeat
I have a ng-repeat and in that ng-repeat there is another ng-repeat.
What I want is if user click on first name of ng-repeat then then its nested ng-repeat's mutual frined should shown and so on for ...
0
votes
2answers
31 views
How do I calculate a value based on items in a filtered angularjs repeater
I'm building a scoring system and am trying to calculate a score based on values in a separate collection. I've been using this example: Calculating sum of repeated elements in AngularJS ng-repeat , ...
0
votes
1answer
14 views
filter two array with ng-repeat in loop
I am facing a issue where I want to display the all keys in a table cell but the keys which are already in my db will be displayed with different background color; I tried with ng-repeat twice but it ...
0
votes
0answers
55 views
AngularJS filter not working on two or more items
I am displaying the list of incidents on the page using AngularJS.(It works)
I also have 3 buttons on the page. 'Open'-shows open incidents, 'Closed' -shows closed incidents, 'All' -shows all ...
0
votes
0answers
26 views
Matching two ng-repeat-ed radio-button and disable if same
I ended up in a situation, I stuck in handling this scenario, I need some help in solving this , Or Can I use different methods. Is there any alternate
Here is the plunker. https://plnkr.co/edit/...
8
votes
0answers
84 views
AngularJS infinite scrolling (ng-repeat) - removing top elements from the DOM
I have an ng-repeat which loads thousands of records with some complexity that can have an height between 100px and 1200px. Needless to say the performance gets quite a hit.
Infinite scrolling module ...
0
votes
1answer
13 views
Angular Js groupby some specific values in fixed order
I have an array listed as listed below
list = [
{
'id':1,
'name':'nitin',
'group':'angularjs'
},
{
'id':2,
'name':'test2',
'group':'php'
},{
'id':3,
'name':'test3',
'group':'nodejs'
},{
'id':4,
'name'...
0
votes
2answers
38 views
How to use ng-if with ng-disable
Below is my Code.
var myfriend = angular.module('myfriend',[]);
myfriend.controller('myfriendController', function($scope)
{
$scope.record = [
{ "id" : "01",
"...
0
votes
1answer
22 views
Using ng-repeat in form-group css
I have a form, which is using the form-group css. I want to add a ng-repeat which has 4 columns and will have multiple rows. The current code is as below:
<body class="ng-cloak">
<div ng-...
0
votes
0answers
26 views
Nested Ng-repeat in angular js and ionic framework for android
I want to display image like in first row 3 image, second row 3 image, third row 2 images and continue so on. So i prepare server data like that only(Please have a look on server response). But i ...
1
vote
2answers
29 views
Hide previous content on second click of the button of any loop inside ng repeat
I have a ng-show inside ng repeat. Whenever i click the comment button it shows the div tag contains comment box which shows previous comments of that list.
The actual problem is when i click one ...
1
vote
1answer
38 views
How to use ng-repeat with indexes in html
I have got a case in which is difiicult to explain so i put screen shots as follows
CASE:1-
Initailly when i click on add-on-one-field,i get the heading div like below,
CASE:2-
When i click ...
0
votes
0answers
19 views
md-select rtl with special character issue
I have a list with one of value starting with special character '@'.
$scope.neighborhoods = ['john','adam', '@jhonny'];
This list is used in md-select with direction: rtl. but in display the special ...
-1
votes
3answers
55 views
ng:repeat not loading data
This is my controller function to get data from server.
function carsController($http, $scope, $timeout) {
var vm = this;
vm.getCarData = getCarData;
function getCarData(){
$http....
-1
votes
2answers
56 views
Filtering nested objects in ng-repeat with a search input field
I am trying to filter nested objects in ng-repeat by using a search textbox.
Given the following object:
$scope.items = {
"1": {
name: "First Item",
tag: "first"
},
"2": {...
0
votes
2answers
31 views
How to get selected value from ng-repeat
This is my code.
I m getting data through ng-repeat and showing it as shown in below code.
What I want is if I click on either of the name then it should alert me with that name. How can I achieve ...
0
votes
0answers
26 views
Using ng-repeat with bootstrap css and span tags for error message
I am using Angular Js, in which I am using bootstrap css. I have a ng-repeat added to the form. I have a submit button at the end of page. I have added a required field validation to each of the ...
0
votes
5answers
72 views
How to make angular select to select a selected value
I have selected value coming from back end in JSON and i have select element content coming from back end in the same JSON also.
Problem is that selected value is not selected in the select element, ...
0
votes
1answer
34 views
ng-repeat not working when i use constant
Im new at AngularJS.
I have to make dropdown menu from the constants.
Here my code:
.constant('COLORS',
[
{red: '#ff0000'},
{green: '#00ff00'},
{blue: '#0000ff'}
]
)....
0
votes
1answer
11 views
AnguarJs: ng-repeat only work after clicked button inside directive
I want to bind an array (customLayers) and use it for ng-repeat.
I fill the array inside the kv.colorMap Object.
I have three directives using these technique. But the directive updates the binded ...
0
votes
1answer
21 views
How to use ng-repeat to show a templateUrl
How to use ng-repeat to show a templateUrl?
Hi guys i tryied some ways in order to show all elements of a templateUrlby using ng-repeat butunfortunatelly i didn't figure it out!Anyone who can help me ...
0
votes
1answer
35 views
dynamic template adds empty value on ng-repeat
I have been trying to make a query builder for my own purpose.
This plunker https://plnkr.co/edit/95VgJfH9nIScwApXyKOu?p=preview has my work so far,
When I select a parameter and Click on add, it ...