Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

194
Views
Convierta la cadena json en interpolación en angular

Tengo una respuesta json como:

{ someText: "Pedido en {000} 12 p. m. PST para envío anticipado"; hora de corte: "10000000" }

¿Cuál es el mejor enfoque para reemplazar el '{000}' por la "hora límite". Aquí, el tiempo de corte es dinámico y "someText" es estático. Estoy usando Angular 12.

Intenté: this.orderCutOffMessage = Order in ${{ cutofftime }} 12pm PST for early shipping ; que no funciona y también la primera y la última parte de this.orderCutOffMessage también deben provenir de la respuesta json,

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

this.orderCutOffMessage = (yourJSONresponseVar).someText.replace('{000}',(yourJSONresponseVar).cutofftime);

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!