{"id":19311992,"url":"https://github.com/weblineindia/angular-qrcode-generator","last_synced_at":"2025-08-11T21:17:54.609Z","repository":{"id":57179376,"uuid":"280349197","full_name":"weblineindia/Angular-QRCode-Generator","owner":"weblineindia","description":"AngularJS based QR Code Generator is a fast and easy-to-use Ionic 3 and AngularJS 9.0 based QR Code component / module library to generate QR Codes in your Ionic and Angular 9 app with support for AOT and the Ivy compiler and runtime.","archived":false,"fork":false,"pushed_at":"2020-07-17T10:49:09.000Z","size":159,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-11T16:56:03.678Z","etag":null,"topics":["angular","angular-components","angular-libraries","angular-qrcode","angularjs","angularjs-barcode","angularjs-components","barcode-generator","javascript-qrcode","ng-qrcode","qr-code-generator","qr-codes","qrcode-generator","reusable-components"],"latest_commit_sha":null,"homepage":"https://www.weblineindia.com/software-development-resources.html","language":"TypeScript","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/weblineindia.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2020-07-17T06:49:30.000Z","updated_at":"2023-11-23T12:44:55.000Z","dependencies_parsed_at":"2022-09-26T16:31:16.452Z","dependency_job_id":null,"html_url":"https://github.com/weblineindia/Angular-QRCode-Generator","commit_stats":null,"previous_names":["weblineindia/angularjs-qrcode-generator"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/weblineindia/Angular-QRCode-Generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weblineindia%2FAngular-QRCode-Generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weblineindia%2FAngular-QRCode-Generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weblineindia%2FAngular-QRCode-Generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weblineindia%2FAngular-QRCode-Generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/weblineindia","download_url":"https://codeload.github.com/weblineindia/Angular-QRCode-Generator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weblineindia%2FAngular-QRCode-Generator/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269958674,"owners_count":24503606,"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","status":"online","status_checked_at":"2025-08-11T02:00:10.019Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["angular","angular-components","angular-libraries","angular-qrcode","angularjs","angularjs-barcode","angularjs-components","barcode-generator","javascript-qrcode","ng-qrcode","qr-code-generator","qr-codes","qrcode-generator","reusable-components"],"created_at":"2024-11-10T00:32:03.676Z","updated_at":"2025-08-11T21:17:54.562Z","avatar_url":"https://github.com/weblineindia.png","language":"TypeScript","readme":"# AngularJS - QRCode Generator\n\n`angular-weblineindia-qrcode-generator` is a fast and easy-to-use Ionic 3 and AngularJS 9.0 based QR Code component / module library to generate QR Codes in your Ionic and Angular 9 app with support for AOT and the Ivy compiler and runtime.\n\n## Table of Contents\n\n- [Demo App](#demo-app)\n- [Install angular-weblineindia-qrcode 1.0.x with Angular 9](#install-angular-weblineindia-qrcode-10x-with-angular-9)\n- [Features](#features)\n- [Basic Usage](#basic-usage)\n- [Examples: How to implement angular-weblineindia-qrcode](#examples-how-to-implement-angular-weblineindia-qrcode)\n- [Generate a QR Code from a string - directive only](#generate-a-qr-code-from-a-string-directive-only)\n- [Create a QR Code from a variable in your controller](#create-a-qr-code-from-a-variable-in-your-controller)\n- [Parameters](#parameters)\n- [Note](#note)\n- [Available commands](#available-commands)\n- [Want to Contribute?](#want-to-contribute)\n- [Collection of Components](#collection-of-components)\n- [Changelog](#changelog)\n- [Credits](#credits)\n- [License](#license)\n- [Keywords](#keywords)\n\n\n## Demo App\n\n[![](qrcode.gif)](https://github.com/weblineindia/Vue-URL-Component/qrcode.gif)\n\n## Install angular-weblineindia-qrcode 1.0.x with Angular 9\n\n```\n# Angular 9 and Ionic\nnpm install angular-weblineindia-qrcode --save\n# Or use yarn\nyarn add angular-weblineindia-qrcode\n```\n\n## Features\n\n- Ivy Compiler and Runtime Support\n- angular-weblineindia-qrcode-generator is based on node-qrcode and ships a couple of new features (keeping all the known features)\n- Append a CSS class with `cssClass`\n- New `elementType` field: `url`, `img`, `canvas` and `svg`\n- New `margin` field. Define how wide the quiet zone should be.\n- New `scale`, scale factor. A value of 1 means 1px per module (black dot).\n- New `version` field. QR Code version. If not specified the most suitable value will be calculated.\n\n## Basic Usage\n\n### Import the module and add it to your imports section in your main AppModule:\n\n```\n// File: app.module.ts\n// all your imports\nimport { QRCodeModule } from 'angular-weblineindia-qrcode';\n\n@NgModule({\ndeclarations: [\n  AppComponent\n],\nimports: [\n  QRCodeModule\n],\nproviders: [],\nbootstrap: [AppComponent]\n})\nexport class AppModule { }\n```\n\n## Examples: How to implement angular-weblineindia-qrcode\n\n### Generate a QR Code from a string (directive only)\n\nNow that Angular/Ionic knows about the new QR Code module, let's invoke it from our template with a directive. If we use a simple text-string, we need no additional code in our controller.\n\n```\n\u003cqrcode [qrdata]=\"'Your data string'\" [width]=\"256\" [errorCorrectionLevel]=\"'M'\"\u003e\u003c/qrcode\u003e\n```\n\n### Create a QR Code from a variable in your controller\n\nIn addition to our `\u003cqrcode\u003e`-directive in `example.html`, lets add two lines of code to our controller `example.ts`.\n\n```\n// File: example.ts\nexport class QRCodeComponent {\n  public myAngularxQrCode: string = null;\n  constructor () {\n    // assign a value\n    this.myAngularxQrCode = 'Your QR code data string';\n  }\n}\n\n// File: example.html\n\u003cqrcode [qrdata]=\"myAngularxQrCode\" [width]=\"256\" [errorCorrectionLevel]=\"'M'\"\u003e\u003c/qrcode\u003e\n```\n\n## Parameters\n\n| Attribute            | Type    | Default     | Description                                                    |\n| -------------------- | ------- | ----------- | -------------------------------------------------------------- |\n| allowEmptyString     | Boolean | false       | Allow empty string                                             |\n| colorDark            | String  | '#000000ff' | RGBA color, color of dark module                               |\n| colorLight           | String  | '#ffffffff' | RGBA color, color of light module                              |\n| cssClass             | String  | 'qrcode'    | CSS Class                                                      |\n| elementType          | String  | 'canvas'    | 'canvas', 'svg', 'img', 'url' (alias for 'img')                |\n| errorCorrectionLevel | String  | 'M'         | QR Correction level ('L', 'M', 'Q', 'H')                       |\n| margin               | Number  | 4           | Define how much wide the quiet zone should be.                 |\n| qrdata               | String  | ''          | String to encode                                               |\n| scale                | Number  | 4           | Scale factor. A value of 1 means 1px per modules (black dots). |\n| version              | Number  | (auto)      | 1-40                                                           |\n| width                | Number  | 10          | Height/Width (any value)                                       |\n\n## Note\n\nDepending on the amount of data of the _qrdata_ to encode, a minimum _width_ is required.\n\n\n\n## Available commands\n\n    # Build\n    npm run build\n\n## Want to Contribute?\n\n- Created something awesome, made this code better, added some functionality, or whatever (this is the hardest part).\n- [Fork it](http://help.github.com/forking/).\n- Create new branch to contribute your changes.\n- Commit all your changes to your branch.\n- Submit a [pull request](http://help.github.com/pull-requests/).\n\n---\n\n## Collection of Components\n We have built many other components and free resources for software development in various programming languages. Kindly click here to view our [Free Resources for Software Development.](https://www.weblineindia.com/software-development-resources.html)\n \n---\n\n## Changelog\n\nDetailed changes for each release are documented in [CHANGELOG.md](./CHANGELOG.md).\n\n## Credits\n\nangular-weblineindia-qrcode-generator is inspired by the [angularx-qrcode](https://www.npmjs.com/package/angularx-qrcode).\n\n## License\n\n[MIT](LICENSE)\n\n[mit]: https://github.com/weblineindia/Vue-QRCode/blob/master/LICENSE\n\n## Keywords\n\nangular-weblineindia-qrcode-generator, angular-qrcode, ng-qrcode, ngx-qrcode, angular9, ionic, ionic3, ionic4, aot, aot-compatible, aot-compilation, library, ng, typescript\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweblineindia%2Fangular-qrcode-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweblineindia%2Fangular-qrcode-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweblineindia%2Fangular-qrcode-generator/lists"}