任何可用的 angular2 图像裁剪指令? [英] Any angular2 image crop directive available?

查看:18
本文介绍了任何可用的 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 install ng2-img-cropper --save

npm install ng2-img-cropper --save

不仅仅是通过导入来使用组件

than just use the component by importing

import {ImageCropperComponent, CropperSettings, Bounds} from 'ng2-img-cropper';

在这里工作的plunker有关详细信息,请参阅此处,

Working plunker here For more info see here,

这篇关于任何可用的 angular2 图像裁剪指令?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆