Skip to content

Commit

Permalink
feat(): Image descriptions with html inside #123
Browse files Browse the repository at this point in the history
  • Loading branch information
Ks89 committed Mar 1, 2018
1 parent 4921554 commit 8c889f6
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 6 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# 5.1.0
### Features
- support html image description (requested by @ckelkar) #123


# 5.0.1
### Fix
- I forgot to publish README.md on npmjs :)
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ From version 5.0.0, **font-awesome isn't a mandatory dependency**. You can use a


## News
- 03/??/2018 - 5.1.0 - angular-modal-gallery - [HERE](https://github.com/Ks89/angular-modal-gallery/releases)
- 02/27/2018 - 5.0.1 - angular-modal-gallery - [HERE](https://github.com/Ks89/angular-modal-gallery/releases)
- 02/27/2018 - 5.0.0 - angular-modal-gallery - [HERE](https://github.com/Ks89/angular-modal-gallery/releases)
- 02/24/2018 - 5.0.0-rc.3 - angular-modal-gallery - [HERE](https://github.com/Ks89/angular-modal-gallery/releases)
Expand Down
2 changes: 1 addition & 1 deletion apps/main/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export class AppComponent {
2,
{
img: '../assets/images/gallery/img3.jpg',
description: 'Description 3',
description: '<ul><li>Description</li><li><i>3</i></li></ul>',
extUrl: 'http://www.google.com'
},
{
Expand Down
6 changes: 3 additions & 3 deletions examples/universal/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion libs/angular-modal-gallery/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "../../node_modules/ng-packagr/package.schema.json",
"name": "angular-modal-gallery",
"version": "5.0.1",
"version": "5.1.0",
"ngPackage": {
"lib": {
"entryFile": "index.ts"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
(click)="onImageEvent($event, clickAction)" (keyup)="onImageEvent($event, clickAction)"
(swipeleft)="swipe($event.type)"
(swiperight)="swipe($event.type)"/>
<figcaption *ngIf="getDescriptionToDisplay() !== ''" class="inside description">{{getDescriptionToDisplay()}}</figcaption>
<figcaption *ngIf="getDescriptionToDisplay() !== ''" class="inside description" [innerHTML]="getDescriptionToDisplay()"></figcaption>
</figure>


Expand Down

0 comments on commit 8c889f6

Please sign in to comment.