SHARE
TWEET

Untitled

a guest Jun 19th, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. handleInputChange(e) {
  2.   var file = e.dataTransfer ? e.dataTransfer.files[0] : e.target.files[0];
  3.   var pattern = /image-*/;
  4.   var reader = new FileReader();
  5.   reader.onload = this._handleReaderLoaded.bind(this);
  6.   reader.readAsDataURL(file);
  7. }
  8.  
  9.     _handleReaderLoaded(e) {
  10.       let reader = e.target;
  11.       this.imageSrc = reader.result;
  12.     }
  13.      
  14. <html lang="pt-br">
  15. <head>
  16.     <meta charset="utf-8"/>
  17.     <meta content="width=device-width, initial-scale=1, maximum-scale=1" name="viewport">
  18. </head>
  19. <body>
  20.    <img src="{{$foto}}" />
  21. </body>
  22. </html>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top