Skip to main content

All Questions

Tagged with
0 votes
1 answer
37 views

object Angular to array

How can I get only the data array from the observable response ?, I need to get the values ​​of cat_id,cat_name,cat_description but not the sql_types array { "code": 0, "message&...
cesar bouzas soto's user avatar
0 votes
2 answers
330 views

Can't read object of object Json file | angular | typescript | ngfor

Helloo ! i would use a json files in my angular-app. I have a local json file 'client.json' { "T001": { "name": "admin", "type": "adm", &...
corol's user avatar
  • 81
1 vote
1 answer
47 views

Iterate nested objects using ngFor

I have JSON object: content = [ { "id":1, "name":"test", "parent":{ "name":"test2", "subParent":{ &...
kubare's user avatar
  • 31
0 votes
3 answers
54 views

How I can *ngFor for nested json in angular and get data?

I am trying below array to display myData = { "data": { "ZSLatencies": { "Recharging API Latency": [ [ "<200ms", ...
Md Ratan Hossain's user avatar
0 votes
1 answer
170 views

How to use .reduce() on an Array of Objects that has already been reduced?

This Angular app I'm working on is grabbing data from an API in this format: [ { "branchNumber" : "025", "lineOfBusiness" : "DC-M", "taskType" : ...
Jeremy Jarzab's user avatar
0 votes
2 answers
39 views

Trying to convert my JSON to a string but get [object Object]

When I try to display my subData in Angular I get [object Object]: enter image description here I have a model that can contain an array of sites: public class Site { public int Id { get; ...
Mor levi's user avatar
-1 votes
1 answer
55 views

JSON Object Access from Response

[ { "productName": "saree", "productDescription": "bomkai saree", "productDiscountPrice": 12000, "imageUrl": "drdrfd&...
user19951385's user avatar
0 votes
2 answers
405 views

create a new object from two different objects in js

I'm struggling with the following task. On the one hand I have the following object: [ { name: "VALUE1", type: "select", label: "Label" }, { name: &...
kayza's user avatar
  • 75
-1 votes
1 answer
42 views

How to cast obj in to string in typescript

I used Angular 13 and fetch titles from JSON this.variable = this.service('id', this.parentcontrol) I got ID from JSON then I send response to HTML page like this {{variable.title}} either I used an ...
Ahmadreza Shamimi's user avatar
0 votes
1 answer
767 views

How to remove already present double quotes from strings in Objects in Angular?

Using Angular, Data is being recieved in Object form, from the Database to the Backend to the Frontend. In HTML: <h3>Payslip for the month of {{dataout[0].MonthYear | json }}</h3> Where ...
M Waqar Anwar's user avatar
0 votes
3 answers
491 views

Access nested object properties in json object

how can I loop through the following object in Angular using *ngFor(suppousing there are many objects)? I can't find how to access "type" property. Also I wonder whether "Animals ...
YTorres's user avatar
0 votes
0 answers
538 views

Display JSON / Object multiple level in TypeScript Angular

I try to learn TypeScript and Angular and have tried to manipulate date from a JSON source (from https://api.trafikinfo.trafikverket.se/API) I can iterate for several levels and it works but how can i ...
mifran's user avatar
  • 1
0 votes
2 answers
4k views

ERROR TypeError: Cannot read properties of undefined (reading 'valueOf')

I am trying to iterate through the JSON data and access the key of start time and end time. In my API code, I have tried 2 ways to do this. Console.log is not showing error but the other loop method ...
harsh agarwal's user avatar
0 votes
2 answers
78 views

Merge array of dynamically generated objects into single object

I'm struggling to convert the below JSON into expected JSON format using JavaScript. Current JSON : { "furniture": { "matter": [ { "matter1": &...
user avatar
0 votes
0 answers
498 views

Map a json response to an object - Angular

I have this class: export class Person { constructor( public url: string, public name: string, public gender: string, public culture: string, public ...
Vincenzo Galati's user avatar

15 30 50 per page
1
2 3 4 5
8