All Questions
161 questions
1
vote
1
answer
49
views
AngularJs copy : does not placed in the second row in table
I have a problem that I'm having a hard time with, I don't know how I can add into second row when I click the button using angularJS it always on the first row, sorry for my english.
Here's my ...
2
votes
1
answer
87
views
Remove string sign from array element
I am having an array
myArray= ["{ depth: 1, display: 'X' }", "{ depth: 2, display: 'X.X' }", "{ depth: 3, display: 'X.X.X' }", "{ depth: 4, display: 'X.X.X.X' }", "{ depth: 5, display: 'X.X.X.X.X' }"...
2
votes
1
answer
114
views
Compare values inside an array calculate them and merge rows in the table
There is search field in my code where user can search information about another user with id. After search is made system will return $scope.mixedList array. This is dynamic array and output can be ...
0
votes
1
answer
36
views
How to divide the information of an array and send it to another array? [duplicate]
I have this array in Javascript:
cars = [
{color: red, type: sedan, name: ferrari},
{color: blue, type: sedan, name: ferrari},
{color: yellow, type: sedan, name: ferrari},
{color: red, type: ...
-2
votes
3
answers
33
views
How can i remove udefind while im uisng forloop
while im binding values im getting values as undefinedAnil Singh1,Sunil Singh2,Sushil3,Aradhya4,Reena5,Here how can i remove undefind
$scope.GetData = function () {
for (var i = 0; i <$...
-4
votes
2
answers
104
views
How to Iterate Array of Array
I have an array of array data. I want to loop array of array value and get the first values of each array.
var myArr= [
["1",10],
["2",20],
["3",34]
]
I need to get the first value of each array. ...
1
vote
4
answers
1k
views
Show only the latest 3 results using a loop in JavaScript
I have a script that pulls in results and displays it on my site. I want to display only the last three results that are being pulled instead of everything. So the latest results are Test2, Test1 and ...
0
votes
1
answer
67
views
how can i make recursive in angular
I made a small program that supposed to make fetch data through an API sequentially based on a given array length. I have a button which iterates through the array when clicked.
Here is the Angular ...
-1
votes
2
answers
43
views
Accessing Arrays in Javascript
i'm having trouble accessing PayLoad. and i'm not sure if the way that i'm accessing it is the right way. i want to access PayLoad and what i did was this:
console.log("$scope.showbroadcast::", $...
1
vote
4
answers
89
views
From an array remove duplicate data behalf of another array
I have two arrays one is an original array and second is the copy of an original array. I put some new items in an array and update some of one and want to compare it with copy array and want to ...
2
votes
5
answers
7k
views
Split jsonarray into chunk arrays into another array
I am trying to split son array into chunks of 3 inner arrays.
ex:
[{
title: "asd",
description: "asd"
}, {
title: "asz",
description: "sd"
}, {
title: "ws",
description: "sd"
}, {
...
2
votes
3
answers
686
views
Sort array of objects having the offsets in javascript
I am new to web development. Here, I do have an array which is like
[{
endOffset: "50"
startOffset: "25"
type: "Education"
},
{
endOffset: "67"
...
0
votes
0
answers
75
views
Compare the data which is present in the array with other array elements
I am new to angularjs and javascript. Here, I have an array of objects like -->
[{
annotationType: "Full Name:"
endOffset: "17"
startOffset: "0",
type: "FullName"
...
0
votes
1
answer
47
views
change object Structure based condition
I have an object look like below,
I am trying to reform the object structure based on parent and child relationship.
var b = [];
for(var i=0;i<a.length;i++){
if(a[i].parent == null){
const ...
0
votes
2
answers
285
views
Removing first two digits in year field using Jquery
I'm going to list all the years ahead of 2018 to one drop down using angular js. Currently, I'm doing a payment gateway enhancement, and there I want to give to the user to select the year according ...