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

What does the camera icon do in the demo? #7

Closed
thomastthai opened this issue May 6, 2020 · 4 comments
Closed

What does the camera icon do in the demo? #7

thomastthai opened this issue May 6, 2020 · 4 comments

Comments

@thomastthai
Copy link

I clicked on the camera icon, it allowed me to choose an image. After that nothing appears.

@mostafazke
Copy link
Owner

Hello @thomastthai, it was a button for image upload and it used to be worked but we had several issues in the last deployment, it works now please try it again.

@maximus1074
Copy link

I have an angular - ionic app and I want image to be uploaded without selecting anything from the file sytem. However, no matter what I have done I can't upload an image so that I wouldn't see a white background.

@moustafa-in3
Copy link

Hi, Maximus the uploading from the file system is for demo purposes only,
the correct way to insert images is to use whiteboardService like this:

import { NgWhiteboardService } from 'ng-whiteboard';
...

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
   styleUrls: ['./app.component.scss']
   ...
)}

  constructor(private whiteboardService: NgWhiteboardService) {
   this.whiteboardService.addImage('Base64 image');
  }

@mostafazke
Copy link
Owner

Sorry for the late response, check the latest version.

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

4 participants