1.0.0 • Published 4 years ago
viwerjs-ang v1.0.0
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"
/>