mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-31 18:49:43 +08:00
docs(zbar): fix import and usage (#1467)
* docs(zbar): fixed import and usage * Update index.ts * Update index.ts
This commit is contained in:
parent
8a445e9a31
commit
94bd82097c
@ -44,18 +44,18 @@ export interface ZBarOptions {
|
||||
*
|
||||
* @usage
|
||||
* ```typescript
|
||||
* import { ZBar, ZBarOptions } from '@ionic-native/z-bar';
|
||||
* import { ZBar, ZBarOptions } from '@ionic-native/zbar';
|
||||
*
|
||||
* constructor(private zbar: ZBar) { }
|
||||
*
|
||||
* ...
|
||||
*
|
||||
* let ZBarOptions = {
|
||||
* let options: ZBarOptions = {
|
||||
* flash: 'off',
|
||||
* drawSight: false
|
||||
* };
|
||||
*
|
||||
* this.zbar.scan(zBarOptions)
|
||||
* this.zbar.scan(options)
|
||||
* .then(result => {
|
||||
* console.log(result); // Scanned code
|
||||
* })
|
||||
|
Loading…
Reference in New Issue
Block a user