how to use?
step one:
npm i angular-image-croper
step two (in module):
; ... imports: ... ImageCroperModule ...
step three(in html):
step four(in component):
const image = imagesrc = '/assets/girl.jpeg'image { thisimageCroper}
arguments of show method:
- image: [HTMLImageElement] The show method must be called until the image is loaded.
- src: src of image,If the image attribute is specified, the src attribute is automatically invalidated.
- size: size of cropper window.
- extra: [any] use data, will Return intact itself.