Skip to content

Commit 08d43d4

Browse files
authored
Merge pull request #218 from sanjayV/feature/angular-18
Updates for Angular Version 18+
2 parents de5b3cd + 2fcb679 commit 08d43d4

17 files changed

+10309
-5828
lines changed

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
An Angular responsive image slider with lightbox popup.
44
Also support youtube and mp4 video urls.
55

6-
(Compatible with Angular Version: 17)
6+
(Compatible with Angular Version: 18)
77

88
## Features!
99

@@ -104,6 +104,7 @@ For angular version 8 or less, use `"skipLibCheck": true` in `tsconfig.json` for
104104

105105
| Name | Type | Data Type | Description | Default |
106106
|------|------|-----------|-------------|---------|
107+
| fallbackImage | @Input | object | Sets fallback image for image load errors. See fallbackImage Input format below. | null |
107108
| infinite | @Input | boolean | Infinite sliding images if value is **true**. | false |
108109
| imagePopup | @Input | boolean | Enable image lightBox popup option on slider image click. | true |
109110
| animationSpeed | @Input | number | By this user can set slider animation speed. Minimum value is **0.1 second** and Maximum value is **5 second**. | 1 |
@@ -124,6 +125,14 @@ For angular version 8 or less, use `"skipLibCheck": true` in `tsconfig.json` for
124125
| lightboxClose | @Output | n/a | Executes when lightbox close. | n/a |
125126
| lightboxArrowClick | @Output | n/a | Executes when click on lightbox next/previous arrow. | n/a |
126127

128+
## fallbackImage Input Format
129+
```
130+
{
131+
"image": "./slider/mainImage.jpg",
132+
"thumbImage": "./slider/thumbImage.jpg"
133+
}
134+
```
135+
127136

128137
## Add custom navigation button
129138
```typescript

0 commit comments

Comments
 (0)