Skip to content
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

Ionic2 support #78

Open
almgwary opened this issue Aug 12, 2017 · 1 comment
Open

Ionic2 support #78

almgwary opened this issue Aug 12, 2017 · 1 comment

Comments

@almgwary
Copy link

Is there any support for Ionic2 with typescript ?

@almgwary
Copy link
Author

my current quick solution for Canvas2ImagePlugin typescript and Canvas2ImagePlugin ionic2 is
and it is working successfully

let _widow:any = window ;

    if (_widow.cordova) {
      console.log('cordova attached');
      // running on device/emulator
      _widow.canvas2ImagePlugin.saveImageDataToLibrary(
        function(msg){
          console.log(msg);

        },
        function(err){
          console.log(err);

        },
        this.canvasAngularElementRef.nativeElement
      );
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant