Angular component to renders chiptan flicker code.
npm install ngx-chiptan
$ npm i ngx-chiptan --save
`
yarn:
`shell
yarn add ngx-chiptan
`
Version compatibility
This library supports Angular 8+. Please check the version compatibility below to choose the correct version to install.
| angular-iban | Angular |
|:------------:|:-------:|
| 0.1.4 | 8.x |
| 10.x | 10.x |
| 11.x | 11.x |
| 12.x | 12.x |
| 13.x | 13.x |
| 14.x | 14.x |
| 15.x | 15.x |
| 16.x | 16.x |
| 17.x | 17.x |
Import
Once installed you need to import the main module:
`typescript
import { NgxChiptanModule } from 'ngx-chiptan';
@NgModule({
declarations: [],
imports: [NgxChiptanModule],
})
export class Module {
}
`
Usage
`html
code="17850120452019980412345678041234567804123456789E"
width="300"
height="150"
bgColor="#000"
barColor="#fff">
`
| 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
``