Skip to content

accesso/ngCropperjs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ngCropperjs

AngularJS module for https://github.com/fengyuanchen/cropperjs.

Fork and drop-in replacement of https://github.com/koorgoo/ngCropper

Install

bower install ng-cropper

Usage

<link href="client/bower_components/ngCropperjs/dist/ngCropperjs.all.css" rel="stylesheet">
<script src="client/bower_components/ngCropperjs/dist/ngCropperjs.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.

Packages

No packages published

Languages

  • JavaScript 85.3%
  • Makefile 7.5%
  • HTML 7.2%