Skip to content

Instantly share code, notes, and snippets.

@shamique
Last active April 13, 2023 18:06
Show Gist options
  • Save shamique/13a407b83e4d73cb3427f70185227435 to your computer and use it in GitHub Desktop.
Save shamique/13a407b83e4d73cb3427f70185227435 to your computer and use it in GitHub Desktop.
<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