All Questions
Tagged with multidimensional-array angularjs
204 questions
0
votes
1
answer
2k
views
How to build a dynamic object in Angular
Hello I have the following problem, I want to form the following payload structure that is in the example of the first code paragraph, I was advancing well until I came across the part of the form ...
0
votes
1
answer
24
views
Show word count after three words?
I am calling data from api in angular and it is a multiselect option what I want is if data is more than three words its should show count of remaining entries how can I do this can anyone help?
0
votes
3
answers
1k
views
show date in correct format angular
I am making an application in which I want user to submit date date is getting stored in database in this format 2003-06-01T00:00:00.000+00:00 I want to display it as 01/06/2003 or 1st June 2003 can ...
0
votes
5
answers
155
views
how to trim values from multidimentional array
console.log(csvcontents.data.length - 8);
for (let i = 7; i < csvcontents.data.length - 1; i++) {
// console.log(csvcontents.data[i][0]);
// arrayListFromCsvFile.push(...
1
vote
2
answers
993
views
Ionic/Angular cant see images in real phone
I have a project about the film-tv series list. But photos isn't seenable in the real phone. I can see it in an emulator or ionic lab but I can't see it on my real phone.
<img style="margin-...
0
votes
3
answers
69
views
One array to four arrays
I have one array like this:
[{
"coin": "AION",
"profit": "3.10",
"timestamp": "2021-01-26 00:48:01"
},
{
"coin": &...
1
vote
1
answer
241
views
AngularJS dynamic table using 2x2 array data using ng-repeat
I have a json structure which I am trying to bind to a table and i'm trying to do the best I can to use ng-repeats to avoid boilerplate code.
My json structure is as follows:
{
"data": {...
0
votes
1
answer
89
views
Cannot read property '######' of undefined
I have a two JSON arrays, $scope.pl and $scope.activepage, which contain values,
$scope.pl = [{
pageid: 1,
page: "regions",
menudId: 2
},
{
pageid: 2,
page: "...
0
votes
0
answers
88
views
AngularJS ng-options from nested array
Is it possible to use nested for-loops in an ng-options expression?
The following python-style syntax does not work in AngularJS v1.5.8:
ng-options="user for group in userGroups for user in group....
0
votes
1
answer
62
views
How to display 2d array in same row angularjs
js
$scope.arr = [{date: 24, day: 2, month: 11}
2: {date: 25, day: 3, month: 11}
3: {date: 26, day: 4, month: 11}];
<table>
<tbody>
<tr>
<td ng-repeat="...
0
votes
1
answer
261
views
Getting null value when i submit the formControl value?
I have created a form group with an empty array. Then I created a dropdown list where the user can select a value.
If the selected value matches with one in my list then it should append the ...
0
votes
1
answer
846
views
How do I add an icon within a td at the end of each row using ng-repeat?
I have a 2-dimensional array.
I am using it as a source to populate an html table using angularjs ng-repeat.
I want to add an icon at the end of each row.
It works on the first two rows, but then the ...
0
votes
2
answers
339
views
How to filter Multidimensional Array with limitTo in AngularJS
I have a following Multidimensional Array in the controller.
var app = angular.module('myApp',[]);
app.controller('myController',function($scope){
$scope.myData = [{name:'Person1',surname:'...
0
votes
1
answer
251
views
Nested ng-repeats with bootstrap collapse, trouble with $index and ng-init
I have a bootstrap collapse accordion with multiple ng-repeats:
<div class="subdiv-wrapper">
<div class="panel-group" id="accordion1" ng-repeat="admin in subdivisions" ng-init="...
1
vote
2
answers
425
views
Loop through JSON object within Angular
I have a loop for products, which is working perfectly.
<div ng-repeat="result in results track by result.uid">
<img ng-src="{{ result.img';" alt="{{ result.name }}"
title="{...