All Questions
49
questions
0
votes
2
answers
652
views
How to push some arrays to the main array in angular 8
Hi i am working on Angular 7 and I have 3 main arrays fetching from API like mentioned in stackblitz
And now the 3 main arrays look like this.
this.mainarr = [
{ id: 1, name: "Praveen"...
0
votes
4
answers
2k
views
How to update a boolean value based on the value in array of objects?
I have an array of objects as below, and only one object has userInfo value as "true" and I want to update another boolean value (globally declared) to true only for the object which has ...
-1
votes
1
answer
887
views
how to remove the object that meets the condition from an array of objects?
I receive in my function an object with the following information
{
"name": "Grand modèle",
"description": "Par 10",
"price": 0,
"functional_id": "grand_modele_par_10",
"quantity": 2,
"...
2
votes
2
answers
72
views
how to compare an objects array and a nested objects array?
I have only been programming for a short time and I am faced with a data structure that is difficult to understand.I have a function where I get an array of objects, representing products added to a ...
0
votes
0
answers
52
views
Read complex JSON data in typescript
Below is JSON Data:
var Dataset = [
{
"studentname": "Rockey",
"age": 13,
"average": 8.2,
"exam": [{"Status": "Pass", "TimeStamp": "2019-03-12 08:19:50", "...
0
votes
1
answer
673
views
Typescript Object Returning Array Object Value Error [Angular] [closed]
I'm getting a weird error where when I console log my array value it returns as [object Set]. I'm unsure if this is happening in the component or the service, but I'm not getting the object as values.
...
0
votes
2
answers
57
views
converting object to array in angular 7
i am getting the json response as object like below
machineInfo:{
machineID: 1
machineName: "F01"
machineStatus: null
alternateMachine: null
sahPerDay: 0
sahNextWeek: 0
...
-1
votes
1
answer
131
views
Want to display array without Brackets in csv
I want to display an array without commas when exporting in excel.
Please find the code
var eventData = [];
for (var i = 0; i < callDetailsData.conditionalEvent.length; i++) {
eventData.push(...
0
votes
1
answer
3k
views
how to get list of ids to string object with comma in angular
I have drop down with
userList =[ { id: "0",name: "ALL"},{id: "1",name: "Smith"},{id: "2",name: "Smith"},{
id: "3", name: "RAM"}];
when select ALL option i need to get all id's of user into string ...
2
votes
4
answers
70
views
How to convert values of array to array filtered
I have this problem, I use Angular 8, I hope you can help me, I have been unable to solve it for a long time.
I have this array:
datos = [{
Description: 'Puede Insertar',
Id: 1,
Type:...
-2
votes
2
answers
155
views
I need to split an array into N number of arrays based on searching for an element from another array
I need to split an array into N number of arrays based on searching for an element from another array.
consider this scenerio
var test = ["1","2","3","env","6","7","8","uat","2344","wersdf","sdfs"];
...
1
vote
0
answers
128
views
Paginated view pages in angular
I am trying to display an array of objects as Word document view pages using ngFor. To do that, I have prepared a temporary object and it is working fine and I am able to display it as pages based on ...
0
votes
1
answer
31
views
how to delete particular json object from array of array
I have array within the array and i want to delete particular JSON object by its value.
rows=[
[isTrue:'false',isAvailable:'false',name:'Abc',data:'ABC',Value:'ABC']
[isTrue:'false',isAvailable:'...
0
votes
2
answers
34
views
Replacing keys by values according to some predefined object in javascript
I have an object having key-value pairs. Another array has only a partial set of keys. I want a third array that contains only values and that too only for those keys which are present in the second ...
0
votes
2
answers
41
views
How to fetch result of matching string from array?
I have following array, When I type number '98' I want to show both results and when I typed '983' I want to show result of 'string 2' but when I type number '98' I did not get any result
can anyone ...