jpilfold / ngx-image-viewer

An image viewer component for Angular 2+
MIT License
49 stars 54 forks source link

Update to latest font awesome icons #18

Closed cca-developer closed 6 years ago

cca-developer commented 6 years ago

Right now it is using fa-repeat for one of the font awesome icons. However, this is deprecated in the latest version and instead it should be fa-redo.

jpilfold commented 6 years ago

I don't want to change this without changing the major version number as it would break any existing projects that are using font awesome v4.x

In the meantime, if you wish to use the latest version of fontawesome, you can change the icon via configuration:

<ngx-image-viewer [src]="images" [config]="{btnIcons: { rotateClockwise: 'fa fa-redo'}}" (customEvent)="handleEvent($event)">

You can set config via the module import as well if you'd prefer.