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

171
Vistas
how to execute jquery sparkline from html json string sent by rest api?

I have a task to show sparkline in angular web app, currently I use angular 12. the problem I face is, data sent by rest api like this:

{
    "data" : "<span class='sparklines' values='1,2,3,4,5,4,3,2,1'></span>" 
}

I already try to render that html string like this:

<div [innerHTML]="data"></div>
this.data = resp.data;

and html is shown as span with class sparklines,

I have an idea, may be I can trigger jquery.sparklines code every this.data changed. but it still and idea, because I dont have any idea how to do it in code.

how to execute jquery sparkline from html json string sent by rest api, without string extraction?

because sparklines is only one of jquery plugins that I need render.

about 4 years ago · Juan Pablo Isaza
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