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

248
Views
How do we make text bold from .ts file to show in [innterText] html section

Just like we use \n instead of
to see the line break changes in the interface, how do we bold the specific text? What can be the alternative solution apart from using [innerHTML]?

for example: .ts file

string = This is a STRING bold testing.\n Thankyou!; // here I want to word STRING to be bold

.html file

<h2 [innerText]="string"></h2>
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You have to use a custom Pipe for making bold for a particular string. Please find the below URL for your reference.

apply bold text on part of string Angular

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!