ngx-chiptan
Angular component to renders chiptan flicker code.
Demo: https://fundsaccess.github.io/ngx-chiptan/
For the Angularjs version see https://github.com/fundsaccess/ng-chiptan
Installation
npm:
$ npm i ngx-chiptan --save
yarn:
yarn add ngx-chiptan
Import
Once installed you need to import the main module:
import { NgxChiptanModule } from 'ngx-chiptan';
@NgModule({
declarations: [],
imports: [NgxChiptanModule],
})
export class Module {
}
Usage
<ngx-chiptan
code="17850120452019980412345678041234567804123456789E"
width="300"
height="150"
bgColor="#000"
barColor="#fff">
</ngx-chiptan>
Property | Type | Default | Description |
---|
code | string | '' | ChipTAN code to render. |
width | number | 205 | Canvas width. |
height | number | 100 | Canvas height. |
bgColor | string | '#000' | Canvas background color. |
barColor | string | '#fff' | Vertical bar(s) in canvas color. |
Demo
https://fundsaccess.github.io/ngx-chiptan/
or
cd projects/ngx-chiptan-showcase
ng serve
Acknowledgments
Inspired by
chipTAN Flickercodes article
react-chiptan
License
Copyright (c) 2019 fundsaccess AG. Licensed under the MIT License (MIT)