diff --git a/playground/angular/src/app/app.component.html b/playground/angular/src/app/app.component.html
index a09ec7389..fe8e859cf 100644
--- a/playground/angular/src/app/app.component.html
+++ b/playground/angular/src/app/app.component.html
@@ -73,87 +73,89 @@
{{ exampleConfig | json }}
+
+
{{ i }} - {{ slide }}
-
-
+
+
-
- Slide 1
- Slide 2
- Slide 3
- Slide 4
- Slide 5
- Slide 6
-
-
- Slide 1
- Slide 2
- Slide 3
- Slide 4
- Slide 5
- Slide 6
-
-
-
-
- Slide 1
- Slide 2
- Slide 3
- Slide 4
- Slide 5
- Slide 6
-
-
- Slide 1
- Slide 2
- Slide 3
- Slide 4
- Slide 5
- Slide 6
-
-
+
+ Slide 1
+ Slide 2
+ Slide 3
+ Slide 4
+ Slide 5
+ Slide 6
+
+
+ Slide 1
+ Slide 2
+ Slide 3
+ Slide 4
+ Slide 5
+ Slide 6
+
+
+
+
+ Slide 1
+ Slide 2
+ Slide 3
+ Slide 4
+ Slide 5
+ Slide 6
+
+
+ Slide 1
+ Slide 2
+ Slide 3
+ Slide 4
+ Slide 5
+ Slide 6
+
+
diff --git a/src/angular/src/swiper.component.ts b/src/angular/src/swiper.component.ts
index 1c666883e..69e6fafb6 100644
--- a/src/angular/src/swiper.component.ts
+++ b/src/angular/src/swiper.component.ts
@@ -164,7 +164,10 @@ export class SwiperComponent implements OnInit {
});
if (
typeof this._navigation !== 'boolean' &&
- (typeof this._navigation?.nextEl === 'string' || typeof this._navigation?.prevEl === 'string')
+ (typeof this._navigation?.nextEl === 'string' ||
+ typeof this._navigation?.prevEl === 'string' ||
+ typeof this._navigation?.nextEl === 'object' ||
+ typeof this._navigation?.prevEl === 'object')
) {
this.showNavigation = false;
}
@@ -181,7 +184,10 @@ export class SwiperComponent implements OnInit {
this._pagination = setProperty(val, {
el: current || null,
});
- if (typeof this._pagination !== 'boolean' && typeof this._pagination?.el === 'string') {
+ if (
+ typeof this._pagination !== 'boolean' &&
+ (typeof this._pagination?.el === 'string' || typeof this._pagination?.el === 'object')
+ ) {
this.showPagination = false;
}
}
@@ -197,7 +203,10 @@ export class SwiperComponent implements OnInit {
this._scrollbar = setProperty(val, {
el: current || null,
});
- if (typeof this._scrollbar !== 'boolean' && typeof this._scrollbar?.el === 'string') {
+ if (
+ typeof this._scrollbar !== 'boolean' &&
+ (typeof this._scrollbar?.el === 'string' || typeof this._scrollbar?.el === 'object')
+ ) {
this.showScrollbar = false;
}
}