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

126
Views
Reemplace una etiqueta de material angular con una etiqueta HTML usando Javascript

Estoy usando una etiqueta de material angular que es <mat-label> . El problema es que esta etiqueta no funciona correctamente cuando intento generar un archivo PDF del código HTML utilizando la biblioteca html2pdf. Necesito cambiarlo a <label> para que funcione.

¿Hay alguna forma de reemplazar esa etiqueta dinámicamente con una función de javascript?

Esto es lo que estoy tratando de hacer, pero no estoy seguro de si es la forma correcta. matLabel no se reconoce como un elemento HTML:

 Array.from(document.querySelectorAll('mat-label')).forEach((matLabel) => { const label = document.createElement('label') label.title = matLabel.title; matLabel.style.display = 'none' matLabel.parentElement.append(label) })
about 4 years ago · Santiago Trujillo
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!