Hi,
I have an image gallery and in the html i have click event. in the ts file i have a function. I am getting the image path if the image is clicked and now trying to open the image in a new window and bigger size, how?
html:
<div class="container">
<ngx-slick-carousel class="carousel"
#slickModal="slick-carousel"
[config]="slideConfig">
<div ngxSlickItem *ngFor="let slide1 of slides" class="slide">
<img src="{{ slide1.img }}" (click)="clicked(slide1.img)">
</div>
</ngx-slick-carousel>
</div>
and the ts file:
clicked(img:any): Observable<any> {
console.log(img);
this.imagepath = img;
return this.http.get(this.imagepath);
}