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

256
Vistas
AngularJs: How to interpolate an interpolated string?

I'm trying to Interpolate a string coming from a database which looks like this "Users({{users_count || 0}})", and when I interpolate it using {{}} or ng-bind it doesn't get interpolated, because in the HTML I write {{data.usersCount}} and the page interpolates the data as text not as js, (what I intended the page to render is Users(8), and what gets rendered is Users({{users_count || 0}})). So my question is how to interpolate the string that was interpolated from the usersCount variable?

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

0

One way is to use $interpolate, as in

$interpolate("Users({{users_count || 0}})")($scope)
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