{"repo":"ngx-print/ngx-print","free":true,"listed":false,"github":"https://github.com/ngx-print/ngx-print","clone":"git clone https://github.com/ngx-print/ngx-print.git","description":":printer: A plug n' play Angular (2++) library to print your stuff","language":"TypeScript","stars":175,"topics":["angular","angular-2","angular4","angular5","angular6","npm","printing","print","library","dependency"],"license":"MIT","category":"ui-components","readme_excerpt":"ngx-print : plug n' play Angular directive to print your stuff This directive makes printing your HTML sections smooth and easy in your Angular application. It is inspired from the old AngularJS ngPrint directive. Enjoy! Contributions are so welcomed :) Dependencies ngx-print Angular --------- -------------- 1.2.1 7.0.0 - 14.1.0 1.3.x 15.0.0 1.4.x 16.0.0 1.5.x 17.0.0 2.x.x 18.0.0 3.x.x 19.0.0 20.x.x 20.0.0 21.x.x 21.0.0 22.x.x 22.0.0 Version Alignment Notice Starting with version 20.0.0, this package aligns its major version with the Angular framework version for better clarity and compatibility tracking. Version 20 is intended for Angular 20 and so on. Setup 1- In your root application folder run: 2- Once ngx-print is installed, you need to import the directive NgxPrintDirective : 3- Then plug n' play with it: - Assuming you want to print the following HTML section: - Now, what you have to do is tagging your wanted-to-print section by an id attribute, then link that id to a directive parameter in your button: Optional properties - You want a customized title for your printing window? Add printTitle : printTitle also drives the filename browsers suggest when the user chooses \"Save as PDF\" from the print dialog. For printMethod=\"window\" / \"tab\" this happens naturally since the popup/tab is its own top-level document. For printMethod=\"iframe\" , ngx-print briefly swaps the host page's document.title to printTitle around the print call (restoring it once printing finishes) since ","default_branch":null,"files":null,"tree":[],"storefront":"/r/ngx-print","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ngx-print/ngx-print/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}