1.0.0 • Published 4 years ago
ng-croper-js v1.0.0
ngCropper
AngularJS module for https://github.com/fengyuanchen/cropper jQuery plugin.
Install
bower install ng-cropper
npm install ng-cropper
Usage
<link href="./ngCropper.all.css" rel="stylesheet">
<script src="./ngCropper.all.js"></script>
var app = angular.module('app', ['ngCropper']);
app.controller('Main', function(Cropper) {
...
});
<img src="image.jpg"
ng-cropper
ng-cropper-options="options"
ng-cropper-show="'show.cropper'"
ng-cropper-hide="'hide.cropper'">
Read Demo code for detailed example.
API
Look at demo.js to learn workflow.