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

145
Vistas
AngularJS: Using $templateCache to customize ui-select template

I want to customize ui-select template in certain places, So I am overriding it using templateCache like below example.

module.run(function ($templateCache) {
    'ngInject';
    const templateName = 'bootstrap/choices.tpl.html';
    var template = $templateCache.get(templateName);
    template = template.replace("<span class=\"fa fa-minus\"></span>", "<span class=\"fa fa-plus\"></span>);
    $templateCache.put(templateName, template);
})

The problem with above approach is it's replacing the template in all ui-select elements. Is there a way we can restrict the behaviour so only specific ui-select elements will be replaced in specific pages.

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