G
Size: a a a
G
ДМ
Вキ
S
S
G
G
G
Вキ
G
B
onFileSelected(event){
const formData = new FormData();
for (const element of event.target.files) {
formData.append('image', element);
}
this.adminService.loadImages(formData)
.pipe(takeUntil(this.unsubscribe))
.subscribe(
images => this.loadImages = images,
error => console.log(error)
);
}
//Отрисовка<ul>
<li *ngFor="let i of loadImages">
<img src="server/uploads/{{i.filename}}" alt="">
</li>
</ul>
А
onFileSelected(event){
const formData = new FormData();
for (const element of event.target.files) {
formData.append('image', element);
}
this.adminService.loadImages(formData)
.pipe(takeUntil(this.unsubscribe))
.subscribe(
images => this.loadImages = images,
error => console.log(error)
);
}
//Отрисовка<ul>
<li *ngFor="let i of loadImages">
<img src="server/uploads/{{i.filename}}" alt="">
</li>
</ul>
B
B
B
AS
ДЗ
RY
G
AS