view-image-ng
v0.2.1
Published
View your image in full screen with zoom & swipe. For angular9+ projects
Downloads
3
Readme
view-image-ng
View your image in full screen with zoom & swipe.
For angular9+ projects
How to use
Install package
npm i view-image-ng
Import package to your module
import { ViewImageModule } from 'view-image-ng';
@NgModule({
...
imports: [..., ViewImageModule],
...
})
Use component
<view-images [images]="[{src: 'your image url'}]"></view-images>
Params
- images: array of images with src a url
- index: index of starting image. Default 0
Events
- (dismiss): triggered if image pushed away
- (click): triggered if next to the picture is clicked for a backdrop