{"id":21919725,"url":"https://github.com/gilf/ngprint","last_synced_at":"2025-10-26T12:03:22.079Z","repository":{"id":58237836,"uuid":"48842076","full_name":"gilf/ngPrint","owner":"gilf","description":"AngularJS directive to enable browser printing","archived":false,"fork":false,"pushed_at":"2018-06-29T01:28:12.000Z","size":11,"stargazers_count":45,"open_issues_count":11,"forks_count":47,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-11-10T08:17:41.303Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gilf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-12-31T08:37:47.000Z","updated_at":"2023-06-13T07:05:26.000Z","dependencies_parsed_at":"2022-08-31T03:01:55.539Z","dependency_job_id":null,"html_url":"https://github.com/gilf/ngPrint","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gilf%2FngPrint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gilf%2FngPrint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gilf%2FngPrint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gilf%2FngPrint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gilf","download_url":"https://codeload.github.com/gilf/ngPrint/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226979168,"owners_count":17712574,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-28T20:10:19.243Z","updated_at":"2025-10-26T12:03:22.020Z","avatar_url":"https://github.com/gilf.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"ngPrint\n==============\n\nAngularJS directive for browser printing.\n\nCopyright (C) 2014, 2015, 2016 Gil Fink \u003cgil@sparxys.com\u003e\n\nInstallation\n------------\n\nYou can choose your preferred method of installation:\n* Download from github: [ngPrint.min.js](https://github.com/gilf/ngPrint/blob/master/ngPrint.min.js)\n\nUsage\n-----\nInclude both **ngPrint.js** and **ngPrint.css** in your application.\n\n```html\n\u003clink href=\"components/ngPrint/ngPrint.css\"\u003e\n\u003cscript src=\"components/ngPrint/ngPrint.js\"\u003e\u003c/script\u003e\n```\n\nAdd the module `ngPrint` as a dependency to your app module:\n\n```js\nvar myapp = angular.module('myapp', ['ngPrint']);\n```\n\n### ng-print directive\nUse the `ng-print` directive on a button to indicate that it is a print button.\nUse the `print-element-id` attribute to indicate the id of the element you want to print.\nFor example, if you want to print the whole page you can wrap it in an element with the id of myPage and set the `print-element-id` attribute to myPage.\n\n```html\n\u003cbutton class=\"btn btn-primary\" ng-print print-element-id=\"printThisElement\"\u003e\u003ci class=\"fa fa-print\"\u003e\u003c/i\u003e Print\u003c/button\u003e\n```\n\nAs shown in the Following Post:\n-----\nhttp://blogs.microsoft.co.il/gilf/2014/08/09/building-a-simple-angularjs-print-directive/\n\nA working plnkr\n-----\nhttp://plnkr.co/edit/HkTTHfeLM8buwbWqHuOm?p=preview\n\nLicense\n----\n\nReleased under the terms of the [MIT License](LICENSE).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgilf%2Fngprint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgilf%2Fngprint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgilf%2Fngprint/lists"}