New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Typings file for TypeScript & Angular 2 #105
Comments
Sounds like a great initiative. I would gladly accept a pull request 😄 |
+1 Would be nice to have a typings definitions. I am currently using this library on an Ionic 2 project but I had to create a Basic example below:
|
Hi there, Ionic member here. Unless I installed the wrong library (which I'm sure I didn't), this already includes it's own types that are compatible with typescript 2.0. import { Component, ViewChild, ElementRef } from '@angular/core';
import JsBarcode from 'jsbarcode';
@Component({
selector: 'page-home',
templateUrl: 'home.html'
})
export class HomePage {
public picture;
@ViewChild('barcode') barcode: ElementRef;
ionViewDidLoad() {
JsBarcode(this.barcode.nativeElement, '12345');
}
} And everything works great. |
Added it myself now. Could you confirm everything seems like you expected @maddy2get by installing it via.
|
I just reinstalled on my app works great. Thanks |
Can someone teach me on how to convert it to image in ionic. kinda stuck here |
Hey there,
I was trying to use this lib on an angular 2 project and just wondering if you would be able to add in typings definitions for this lib? Please see this link for more info: typings/typings#322
Thanks in advance.
The text was updated successfully, but these errors were encountered: