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

251
Views
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 answers
Answer question

0

One way is to use $interpolate, as in

$interpolate("Users({{users_count || 0}})")($scope)
about 4 years ago · Juan Pablo Isaza Report
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!