angular-image-croper
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

how to use?

step one:
npm i angular-image-croper
step two (in module):
import { ImageCroperModule } from 'angular-image-croper';

....
 imports: [
    .....
    ImageCroperModule
  ],
....
step three(in html):
<image-croper #imageCroper></image-croper>
step four(in component):
const image = new Image()
image.src = '/assets/girl.jpeg'
image.onload = () => {
    this.imageCroper.show({
    image
    }).then(file => {
    console.log(file)
    })
}

Readme

Keywords

none

Package Sidebar

Install

npm i angular-image-croper

Weekly Downloads

4

Version

0.0.4

License

MIT

Unpacked Size

414 kB

Total Files

23

Last publish

Collaborators

  • vennnn