%PDF- %PDF-
Direktori : /var/www/html/news/public/bower_components/ng-cropper/ |
Current File : /var/www/html/news/public/bower_components/ng-cropper/README.md |
# ngCropper AngularJS module for https://github.com/fengyuanchen/cropper jQuery plugin. ### Install ```bash bower install ng-cropper ``` ### Usage ```html <link href="client/bower_components/ngCropper/dist/ngCropper.all.css" rel="stylesheet"> <script src="client/bower_components/ngCropper/dist/ngCropper.all.js"></script> ``` ```javascript var app = angular.module('app', ['ngCropper']); app.controller('Main', function(Cropper) { ... }); ``` ```html <img src="image.jpg" ng-cropper ng-cropper-options="options" ng-cropper-show="'show.cropper'" ng-cropper-hide="'hide.cropper'"> ``` Read [Demo code](http://github.com/koorgoo/ngCropper/tree/master/demo) for detailed example. ### API Look at [demo.js](http://github.com/koorgoo/ngCropper/tree/master/demo/demo.js) to learn workflow.