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

136
Views
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
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!