Last active
April 13, 2023 18:06
-
-
Save shamique/13a407b83e4d73cb3427f70185227435 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
<ion-header hideBackButton="true"> | |
<ion-navbar> | |
<ion-title>Upload Image</ion-title> | |
</ion-navbar> | |
</ion-header> | |
<ion-content padding> | |
<img [src]="imageView" *ngIf="imageView" /> | |
<ion-row> | |
<ion-col> | |
<ion-input type="text" placeholder="Image name" name="name" [(ngModel)]="imageName"></ion-input> | |
</ion-col> | |
</ion-row> | |
<br/> | |
<ion-row> | |
<ion-col> | |
<button ion-button class="submit-btn" full type="submit" (click)="openCamera()">Open Camera</button> | |
</ion-col> | |
<ion-col> | |
<button ion-button class="submit-btn" [disabled]="!imageName && !imageData" full type="submit" (click)="uploadPhoto()">Upload photo</button> | |
</ion-col> | |
</ion-row> | |
</ion-content> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment