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.
0
votes
1answer
13 views
ng-repeat errors. Can't read property of undefined
I have two errors saying: Cannot read property 'active' of undefined and Cannot read property 'boss' of undefined while I'm trying to use ng-repeat over my array of users.
In the controller I'm using ...
0
votes
1answer
32 views
Ng-repeat without freezing UI on over 12k records
i have over 12k images mostly 10x10 size converted to base64 in a json array,
and i have the size of the image in the json and x,y coordinates where i want to show the image on the screen,
the json ...
0
votes
2answers
32 views
ng-repeat not adding new items dynamically
I am new to Angular JS (1) and I am having issues with ng-repeat. I am using socket.io with Angular. Here is my controller:
var messagingApp = angular.module('messagingApp', []);
function ...
0
votes
0answers
18 views
Multiple iframe youtube video stopping in angularjs javascript
Hi I have an issue in youtube iframe stoping video. when I used for single video its works fine.. when Im using multiple videos, the video is not stopped
//view part
<div ng-repeat="videos in ...
-1
votes
2answers
52 views
ng-repeat not showing data
I want to display all Images of a specific property. each image can only belong to 1 property and 1 property can have multiple images.
I retrieving the Images table and property table separately. To ...
0
votes
1answer
30 views
Adding ‘active’ class in ng-repeat on hover
Hello I have the following code:
div( ng-repeat='cladding in claddings track by $index' ui-sref='app.protected.docInside.cladding({documentId, claddingId: cladding.id})')
div(ng-if='!cladding....
5
votes
3answers
69 views
How to show model and view differently in AngularJS
I am implementing a functionality in AngularJS.
When the user enters 1.5, In view, it should show as 01:30, but when I fetch this scope value in the controller it should return as 1.5.
I have added ...
0
votes
3answers
68 views
Angular JS ng-repeat not working with Array of Objects
I have a simple list
<ul>
<li ng-repeat="spiel in spielListe">Do something</li>
</ul>
And a controller (which is perfectly connected)
$scope.spielListe = [];
In ...
1
vote
1answer
24 views
How to increment a counter variable as you loop through an ng-repeat?
If I have an ng-repeat that is looping through an array of 100 records. Let's say I have $scope.counter and I want to increment that value by 1 for each iteration through the ng-repeat. How can I ...
1
vote
1answer
14 views
Not able to fetch key and value from nested JSON data in IONIC
I face a problem now that I am not able to fetch key and value from nested JSON data.Please help me I am doing any wrong.
<ion-item class="item item-thumbnail-left item-text-wrap" type="item-text-...
0
votes
0answers
21 views
Angular list rendering
I've recently started to use Angular for front-end development to communicate with an API to perform state changes in the UI. I would like to know what is the way to update a front-end component after ...
0
votes
4answers
44 views
Angular JS ng-selected with ng-repeat not working
I am trying to set ng-selected true in ng-repet
my HTML :
<select ng-model="editActivities.NewArea">
<option ng-repeat="area in areas" value="{{area.ID}}" ng-selected="...
0
votes
4answers
43 views
Show one content at a time in ng repeat
I have the code here where I want to expand only one item at a time. I am not able to figure out the condition for this. Appreciate it if someone can point out what I might be missing.
function ...
0
votes
0answers
25 views
Javascript of multitypeahead is not working while angular script get started
I have two JavaScript's to accomplish multi type ahead in one input box by,
typeahead.bundle.min.js
jquery.caret.min.js
then i got a problem , whenever by angular script is running multi type ...
0
votes
1answer
38 views
ngRepeat used as element inside a table doesn't work
I have a strange problem with AngularJS 1.6.0 (same with older versions) and the ngRepeat directive when it's used as an element nested in a table.
Simply put <ng-repeat> in a <table>, ...
0
votes
0answers
37 views
ng-if only true on div with certain class
I have a simple list of li I want to open a div only under the last li in a wrapped list. I do not want to select the $last item, but the last li of same height. For an example open google images and ...
0
votes
1answer
22 views
Recursive AngularJS Ng-Repeat without parent/child comparators
I am needing to create a recursive ng-repeat for my file structure.
Everything I am finding on the interwebs is using parent/children comparators. Like so:
$scope.categories = [
{
title: '...
0
votes
3answers
35 views
Angular Show ng-repeat Key
I need to display the key in the products AL200W401 (without xxxx) using ng-repeat. in my HTML code its displaying the AL200W401xxxx. How to go about this thanks.
JSON
{
"kits":"B11D0W201,...
0
votes
0answers
13 views
multiple tables to excel - rowspan error
I used the code of dotnetN00b in this thread How do I export multiple html tables to excel?
It run fine in my 2 tables without a rowspan but when the data got a rowspan it was not interpreted in excel....
0
votes
2answers
31 views
Angular - inside an ng-repeat, checkbox state to affect only one element
If I have for example a simple todo list:
HTML
<ul ng-repeat="todos in keyVar.list">
<li ng-class="{ 'completed' : keyVar.toggle }">
{{ todos }}
<input ng-if="!keyVar....
-1
votes
2answers
30 views
How to send data from a table generated with a form inside a ng-repeat
I have a table generated with a ng-repeat directive.
Each cell can be editable and each row has a submit button.
The submit button must send only the data of the affected row to the controller ...
0
votes
1answer
23 views
How do I access $scope variables in Angular 1 after using keyword this?
I think I'm having a problem with scope in Angular. I'm trying to iterate through an array of images that I get back from a request using ng-repeat, but I can't seem to access a variable that will let ...
0
votes
1answer
16 views
Using Angular Material md-select without ng-repeat
I'm trying to use ms-select without the ng-repeat but it doesn't seem to work. Is it possible to use it that way or I have to use it with ng-repeat
Here is my code:
Html:
<div ng-controller="...
0
votes
0answers
10 views
Multiple TinyMce not showing/Init right
Iam using TinyMce with the ui-tinymce Package.
First I had multiple TinyMce generated through ng-repeat in a Table which worked fine. For Comparison now the ng-repeat generates a second TinyMce which ...
0
votes
0answers
48 views
How to write filter for this array to display proper format in Angular js?
I am getting response from backend like
[
{"name":"logo2.png",
"caption":"ll",
"path":"images\/bussiness\/images\/logo2.png",
"status":"1",
"pract_image_id":4,
"image_identifier":"2",
"branch_id":2
},...
1
vote
6answers
52 views
How to print array in a row using ng-repeat with limit of 6 items in Angular js?
I want to print array items like
a b c d e f
g h i j k l
m n o p q r
My array is ["a","b","c","d","e"...] like up to r
I tried like ths
<div ng-repeat="array in arraylist | limitTo:6">
...
0
votes
0answers
30 views
ng-repeat adding a 0 element to array
I'm creating an array in a service and fetch some data from a db and iterative over the data to add the group id as a key in the array
angular.module('tasksApp').
factory("data", ["$http", function ($...
3
votes
1answer
77 views
AngularJS ng-repeat not re-rendering the repeater (UI) and not invoking ng-init once again
I have a small doubt about ng-init, actually I have some charts.
Trendline on top
Piecharts below.
HTML Table below.
on page load I am not displaying anything, but once I click on particular button ...
2
votes
1answer
30 views
Print blank rows in the table using ng-repeat
<table>
<tr ng-repeat="obj1 in jsondata">
<td>{{$index+1}}</td>
<td>{{obj1.Subject_ID}}</td>
<td>{{obj1.Credit}}</td>
</tr>
/****...
1
vote
1answer
24 views
AngularJS array of objects ng-show or ng-if
I need to show a message of "No categories" so im using this:
<div ng-repeat="categoryItem in categories">
<div ng-show="categoryItem.length">No categories</div>
...
0
votes
0answers
19 views
Dynamic elements and ng-repeat and ng-model
I'm having a problem. Within a ng-repeat I need to create dynamic inputs for different types of items depending on their type:
T01 dynamic input type toggle
T02 dynamic input type toggle
T03 dynamic ...
2
votes
2answers
40 views
Angular: Why is my div not showing/hiding with ng-show/ng-hide?
I'm trying to make a super simple lightbox for some images. Basically I have a div with a set of images showing up using ng-repeat, and I want to have a lightbox div show up when one of the images is ...
0
votes
0answers
36 views
Custom 'compile' directive renders ng-repeat multiply times
I am using a custom "compile" directive to render HTML snippets that I push into a div container which is working great. One problem I am having is that it seems like the compile directive gets called ...
0
votes
2answers
42 views
Understanding ng-repeat for array of Objects
I have the following array of objects, which is a server response. I am trying to use ng-repeat to iterate over this array and read each value.
While trying to use in html, array[0].value is working ...
0
votes
0answers
10 views
Ionic external links
What would be the best way to run external links within ng-repeat element
<ion-list ng-repeat="studio in studioanzeigen">
<ion-item class="item-thumbnail-left" href="#"
...
0
votes
0answers
26 views
Correct format or order json array
I'm having a problem. From a WebService I receive the following array:
"Value": [{
"celda_id": 1,
"indicador_id" : 5,
"valores_celdas": [{
"celda_key_codigo": "CODIGO",
"...
1
vote
2answers
46 views
<select> with ngRepeat dont select item when first element selected
I'm facing a problem when using ngRepeat and ngSelected inside <select> tag, this is the code:
<select ng-model="y.SkuId" ng-change="y.Edited=true;">
<option ng-repeat="s in skus" ...
1
vote
1answer
23 views
not sure why ng-repeat-start and ng-repeat-end throws exception
First of all a background of what i want to achieve,
<tr ng-repeat-start="eachParam in myArray">
<td rowspan=2>On site</td>
<td rowspan="2" class = "success">{{...
1
vote
0answers
22 views
AngularJS - Children component binded value not refreshed in ng-repeat
I have a parent component "transactionList" which get a list of banking transactions from an API and a children component "transactionItem" repeated for each transaction in this list.
I encountered ...
0
votes
2answers
38 views
angularjs clear filter for ng-repeat
I have this ng-repeat condition:
<tr ng-repeat="(k, v) in loanapps | filter:{LoanStatus:SelectedStatus}:true track by $index">
<td>
{{v.Id}}
</td>
<td>
...
0
votes
0answers
10 views
ng-repeat orderby of dynamic lenght of object
I have the following object that contains 2 fixed attributes (OrderId and Purchasedate, and an array of attribues. I try to to put this in ng-repeat with orderBy option. The first 2 attribute (OrderId ...
0
votes
1answer
44 views
Select option goes beyond display
i am using select tag to show a dropdown. in option tag i am doing ng-repeat. if in that ng-repeat, there is a long string suppose of maxlength=255, how can i break into lines. because it ...
0
votes
3answers
34 views
Sort Table inside ng-repeat on table header click
I have a table which is inside a ng-repeat. I want to sort the data from Ascending or descending order. I am a bit confused on order by. How can I possibly do that? My html code is as of the following:...
0
votes
1answer
16 views
View selected photo inside a ng-repeat in another div
I have a table that has data in ng-repeat. A column contains photos. When I edit a specific data in the table, the photo of the data that I have been selected should be shown. How can I possibly do it?...
0
votes
1answer
21 views
Managing data from http method in controller with AngularJS 1.5 components
Ng-repeat in component can't show data charged from $http.then in controller. What am i doing wrong?
Service calling rest method in app.js:
app.service('dataService', dataService);
function ...
0
votes
4answers
42 views
angular ng-repeat displaying object items
I am having a problem with displaying a JSON array objects that I have gotten from a async http request.
I have used ng-repeat to try and display the objects in the view but I am having no luck after ...
1
vote
1answer
19 views
Angular / nodejs : How to ng-repeat all products from database for an online shop? controller etc doesnt work
I am using node for the backend and angular for the frontend and am trying to display the products, however, nothing is being displayed. For the database, I am using Postgres (Sequelize) (everything ...
1
vote
1answer
28 views
How to filter in ng-repeat in a specific field but passing it an array, knowing that the field may or may not be contained in the array? Angular 1.5
ng-repeat="equipment in equipments | filter: {guidEquiment: ['cb8b22e1-43f0-4dc9-b2dc-34847731e2d1','cb8b22e1-43f0-4dc9-b2dc-34847731e2d1','cb8b22e1-43f0-4dc9-b2dc-34847731e2d1',....N]}"
Where
...
1
vote
1answer
47 views
ng-form inside ng-repeat with submit button outside of ng-repeat
I've this code:
<div class="row" ng-repeat="input in inputs | filter:inputNumber">
<ng-form name="form1">
<div class="col-xs-3">
<div class="form-group"&...
0
votes
1answer
26 views
Getting the sum of all values in object - ng-repeat
I feel like I am missing something basic here, and would love some help.
I have some data that looks like this
"playerPoints"{
"ted":{"military":3,"gold":2},
"bill":{"military":2,"gold":4}
}
...