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

195
Views
Angular 2 - ¿Qué es window.print en mecanografiado?

En javascript podría hacer:

 window.print()

Para abrir un cuadro de diálogo de impresora, pero ¿cómo se hace esto en mecanografiado?

about 4 years ago · Santiago Trujillo
3 answers
Answer question

0

(window as any).print();

use la línea anterior si no usa TypeScript 2.8.2.

about 4 years ago · Santiago Trujillo Report

0

solo hice eso

 print() { // do other stuff... window.print(); }
about 4 years ago · Santiago Trujillo Report

0

En el archivo de plantilla, puede usar el controlador de eventos JS estándar onclick con window.print() para esto, así:

 <button mat-raised-button color="accent" onclick="window.print()"> <span class="material-icons">print</span> Print </button>
about 4 years ago · Santiago Trujillo 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!