Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

195
Vistas
Convert json string to interpolation in angular

I have a json response as :

{ someText: "Order in {000} 12pm PST for early shipping"; cutofftime : "10000000" }

What is the best approach to replace the '{000}' by the "cutofftime". Here the cutofftime is dynamic and the "someText" is static. I am using Angular 12.

I tried : this.orderCutOffMessage = Order in ${{ cutofftime }} 12pm PST for early shipping; which does not work and also the first and last part of the this.orderCutOffMessage should also come from the json response,

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

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

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda