Simple Cropper.js wrapper/plugin for angular
npm install @devenvy/ngx-cropperjsThis is meant to be a very simple wrapper for Cropper.js
```
ng build lib
``
ng build lib --watch # (watch is optional, to auto rebuild while developing)
ng serve demo
``
npm install cropperjs --save
npm install @devenvy/ngx-cropperjs --save
#### Add styles to angular.json
``
"yourApp": {
"architect": {
"build": {
"options": {
"styles": [
"node_modules/cropperjs/dist/cropperjs.css"
]
}
}
}
}
#### Load the module for your app:
`
import { CropperModule } from '@devenvy/ngx-cropperjs';
@NgModule({
...
imports: [
...
CropperModule
]
})
`
#### Use it in your HTML template:
```
[options]="options">
#### Properties
| property | value |
|-----------|----------------------------------------------------------------------------|
| source | the image source, can be a url or base64 data url |
| options | See Cropper.js Options|