Skip to content
This repository has been archived by the owner on Aug 6, 2022. It is now read-only.

Commit

Permalink
Removed incorrect configuration from example app tsconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
sconix committed May 23, 2018
1 parent 186d076 commit 7a985a5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions example/src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@
<div class="box-title">Swiper</div>

<div class="content-container" fxLayout="column" fxLayoutAlign="stretch" fxFlex="auto">
<swiper *ngIf="type == 'component' && show" class="swiper-container" [config]="config" [disabled]="disabled" (indexChange)="onIndexChange($event)" fxFlex="auto">
<swiper *ngIf="type == 'component' && show" class="swiper-container" fxFlex="auto" [config]="config" [disabled]="disabled" (indexChange)="onIndexChange($event)" (swiperTransitionEnd)="onTransitionEnd($event)">
<div *ngFor="let slide of slides" class="swiper-slide">
<div fxLayout="column" fxLayoutAlign="center center" fxFlexFill>
{{slide}}
</div>
</div>
</swiper>

<div *ngIf="type == 'directive' && show" class="swiper-container" [disabled]="disabled" [swiper]="config" (indexChange)="onIndexChange($event)">
<div *ngIf="type == 'directive' && show" class="swiper-container" [disabled]="disabled" [swiper]="config" (indexChange)="onIndexChange($event)" (swiperTransitionEnd)="onTransitionEnd($event)">
<div class="swiper-wrapper">
<div *ngFor="let slide of slides" class="swiper-slide">
<div fxLayout="column" fxLayoutAlign="center center" fxFlexFill>
Expand Down
4 changes: 4 additions & 0 deletions example/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
3 changes: 1 addition & 2 deletions example/src/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"outDir": "../dist",
"rootDir": "."
"outDir": "../dist"
}
}

0 comments on commit 7a985a5

Please sign in to comment.