有可用的angular2图像裁剪指令吗? [英] Any angular2 image crop directive available?
本文介绍了有可用的angular2图像裁剪指令吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有任何angular2图像裁剪指令,例如 ngImgCrop
Is there any angular2 image crop directive like ngImgCrop
推荐答案
是的,我们可以使用ng2-img-cropper
组件,只需从节点安装名为ng2-img-cropper的软件包
使用
Yes we can use ng2-img-cropper
component for the same, you just have to install the package named as ng2-img-cropper from the node
using
npm安装ng2-img-cropper-保存
npm install ng2-img-cropper --save
不仅仅是通过导入
import {ImageCropperComponent, CropperSettings, Bounds} from 'ng2-img-
croper';
import {ImageCropperComponent, CropperSettings, Bounds} from 'ng2-img-
cropper';
在这里工作的醉汉 有关更多信息,请参见此处,
Working plunker here For more info see here,
这篇关于有可用的angular2图像裁剪指令吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文