Questions tagged [angular-json]

27 questions
0
votes
1 answer

Angular proxy path rewrite not behaving as expected

I'm trying to build an angular app that reaches a backend server. I've set up an application proxy file so that my angular app could make calls to this backend. { "/Review/*": { "target": "http://localhost:8082", "secure": false, …
Trec Apps
  • 221
  • 2
  • 9
0
votes
1 answer

How to omit subfolders from node_modules for ngx-extended-pdf-viewer

ngx-extended-pdf-viewer allows to omit the subfolders inline-locale-files and additional-locale after copying the entire library assets "src/assets", { "glob": "**/*", "input": "node_modules/ngx-extended-pdf-viewer/assets/", "output":…
imPK
  • 764
  • 2
  • 7
  • 30
0
votes
1 answer

ANGULAR 8 - how to pass the data in which the json inside of json

In angular 8 my json format to pass the data is like { "name": "", "address": { "line1": "", "pincode_id": "" } } I create the format to pass the data to submit the form Format() { let data = this.Form.controls; let…
0
votes
1 answer

Angular JSON Schema Form changing model data does not update the form

I'm using Angular JSON Schema Form to build a form with a model which can change upon selection of a different option. The problem I get is that even thought the model variable changes in my component, the form does not reload its values. This is my…
0
votes
0 answers

angular app can't find a dependency in angular.json scripts

I have an external loader animation dependency installed in node modules. When i run it on local everything works fine but after deploying the app i get that the script for this module is not found ("GET /lottie-player.js.map" Error (404): "Not…
Pablo G
  • 199
  • 12
0
votes
1 answer

how to access the JSON data response from the api I am using angular6

Here I am using the angualar6 and. I am fetching the data from the API and created a model class in typescript. I don't know where am I doing mistake. I am new In angular. order.model.ts export interface OrderModel { orderList: OrderList[]; …
Dharam Dutt Mishra
  • 677
  • 1
  • 6
  • 11
0
votes
1 answer

How to get JSON data and show in component HTML with input type for Angular 8

EDIT Hi, let me clear my below issue.. I have edited all the source code below, firstly I have two json file (one is from payment and other is from sale) but after checked with the API again.. I can use only one JSON with all the data…
0
votes
1 answer

Angular6 environment specific SCSS files

I have to use a few scss files throughout my project "src/assets/fonts.css", "./node_modules/bootstrap/dist/css/bootstrap.min.css", "src/styles.scss", So I added these files to styles:[] inside "architect:"options":"styles":[] And some…
Varun Sukheja
  • 6,170
  • 5
  • 51
  • 93
-1
votes
1 answer

How to write json pie angular get properties?

I have a typescript class in my angular project. export class CheckoutInfo { lines: CheckoutInfoLine[]; taxRate: number; get subTotal(): number { return this.lines.reduce((acc: number, cur: CheckoutInfoLine) => acc + cur.total,…
barteloma
  • 6,403
  • 14
  • 79
  • 173
-1
votes
1 answer

How exactly works this service retrieving a JSON objects array? Why is not mapping on moel objects?

I am pretty new in Angular and I have a big doubt about how exctly this situation works: Into my component code I have something like this: orders: Order[]; ngOnInit() { this.ordersService.getAllOrders().then(orders => { this.orders =…
AndreaNobili
  • 40,955
  • 107
  • 324
  • 596
-1
votes
2 answers

binding json array value in angular

I am trying display my JSON (ARRAY) to html column if I access 1) {{data.pageValue[0].firstName}} I am getting value but If i tried using 2) {{data.pageValue.firstName}} without array the value is not working actually I cannot use the 1st code…
Mr.M
  • 1,472
  • 3
  • 29
  • 76
-1
votes
3 answers

How to pass the headers separatelyin angular4(when passing json object to API not working)

Here I'm trying to catch and save some data to DB (post method)using angular 4.when clicking the confirm button got an error like blocked by CORS policy: Response to preflight request doesn't pass access control check: No…
1
2