-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathapp.component.html
More file actions
39 lines (26 loc) · 858 Bytes
/
Copy pathapp.component.html
File metadata and controls
39 lines (26 loc) · 858 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<div *ngIf="formulaire ==true">
<button (click)="changerb()">changer</button>
<div>
<h2>Upload File</h2>
<input type="file" (change)="onFileSelected($event)">
<button (click)="onUpload()">Upload</button>
</div>
<div *ngIf="fileUploadResponse">
<p>File Name: {{ fileUploadResponse.fileName }}</p>
<p>Message: {{ fileUploadResponse.message }}</p>
<img *ngIf="fileUploadResponse.fileName" [src]="getImageurl(fileUploadResponse.fileName)" alt="Uploaded Image">
</div>
</div>
<div *ngIf="formulaire ==false">
<div>
<h2>Image Gallery</h2>
<div *ngFor="let imageName of imageNames">
<img [src]="'http://localhost/image/images/' + imageName" alt="Image">
</div>
<!--
<div *ngFor="let imageName of imageNames">
<img [src]="getImageurl(imageName)" alt="Image">
</div>
-->
</div>
</div>