viwerjs-ang
v1.0.0
Published
This project is simple use of viwerjs library in Angular
Downloads
44
Maintainers
Readme
ViwerjsAngular
This project is simple use of viwerjs library in Angular
Installation
Install our package
npm i viwerjs-ang
npm i viewerjsImport module
import { ViwerjsAngModule } from "viwerjs-ang";imports: [
...
ViwerjsAngModule
],Import css
import css from viwerjs
@import '~viewerjs/dist/viewer.css';use
Add directive viwerjsAngPreview on any image you want to show preview.
also you can pass options for custom chagnes
more information check viwerjs library
Example :
<img
viwerjsAngPreview`
[options]="{}"
width="200"
src="https://cdn.pixabay.com/photo/2015/04/23/22/00/tree-736885__480.jpg"
/>