Created
March 2, 2019 14:53
-
-
Save maneeshaindrachapa/b462c154a80635f8df6f40d600ced6a9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { HttpClient } from '@angular/common/http'; | |
import { Injectable } from '@angular/core'; | |
import { Observable } from 'rxjs'; | |
@Injectable() | |
export class ImageProvider { | |
base64img:string=''; | |
url:'http://vortexmobievotingapp.000webhostapp.com/imageUpload.php'; | |
constructor(public http: HttpClient) { | |
} | |
setImage(img){ | |
this.base64img=img; | |
} | |
getImage(){ | |
return this.base64img; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment