From 3553c41a8de97832819e93e4cbf6e9ce8fce26ce Mon Sep 17 00:00:00 2001 From: Vlad Tansky Date: Wed, 24 Nov 2021 15:26:07 +0200 Subject: [PATCH] feat(angular): support `on` params (#5224) --- src/angular/src/swiper.component.ts | 1 + src/angular/src/utils/params-list.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/src/angular/src/swiper.component.ts b/src/angular/src/swiper.component.ts index 7206defee..64e4b2a50 100644 --- a/src/angular/src/swiper.component.ts +++ b/src/angular/src/swiper.component.ts @@ -54,6 +54,7 @@ import { isPlatformBrowser } from '@angular/common'; }) export class SwiperComponent implements OnInit { @Input() enabled: SwiperOptions['enabled']; + @Input() on: SwiperOptions['on']; @Input() direction: SwiperOptions['direction']; @Input() touchEventsTarget: SwiperOptions['touchEventsTarget']; @Input() initialSlide: SwiperOptions['initialSlide']; diff --git a/src/angular/src/utils/params-list.ts b/src/angular/src/utils/params-list.ts index bc534523c..aec723e79 100644 --- a/src/angular/src/utils/params-list.ts +++ b/src/angular/src/utils/params-list.ts @@ -112,4 +112,5 @@ export const paramsList = [ '_thumbs', 'virtual', 'zoom', + 'on', ];