diff --git a/example/src/app/app.component.html b/example/src/app/app.component.html index b39d52c..de1aff4 100644 --- a/example/src/app/app.component.html +++ b/example/src/app/app.component.html @@ -28,7 +28,7 @@
Swiper
- +
{{slide}} @@ -36,7 +36,7 @@
-
+
diff --git a/example/src/app/app.component.ts b/example/src/app/app.component.ts index f0399c3..5277693 100644 --- a/example/src/app/app.component.ts +++ b/example/src/app/app.component.ts @@ -108,4 +108,8 @@ export class AppComponent { public onIndexChange(index: number): void { console.log('Swiper index: ', index); } + + public onTransitionEnd(event: any[]): void { + console.log('Swiper event: ', event); + } } diff --git a/example/src/tsconfig.json b/example/src/tsconfig.json index 0c3f2b3..35ad82c 100644 --- a/example/src/tsconfig.json +++ b/example/src/tsconfig.json @@ -1,7 +1,6 @@ { "extends": "../tsconfig.json", "compilerOptions": { - "outDir": "../dist", - "rootDir": "." + "outDir": "../dist" } }