-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(slides): update API docs for slides with usage information
also updated the test for controller. references #5508 closes ionic-team/ionic-site#458
- Loading branch information
1 parent
010fb2a
commit ee4869a
Showing
3 changed files
with
105 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
<ion-slides [options]="mySlideOptions" (didChange)="onSlideChanged()"> | ||
<ion-slides #mySlider [options]="mySlideOptions" (didChange)="onSlideChanged()"> | ||
<ion-slide padding> | ||
<p>Slide 1</p> | ||
<button block (click)="goToSlide(3)">Navigate to 3rd Slide</button> | ||
<h1>Slide 1</h1> | ||
<button block (click)="goToSlide(2)">Navigate to 3rd Slide</button> | ||
<button block (click)="getLength()">Get Slide Length</button> | ||
</ion-slide> | ||
<ion-slide padding> | ||
<p>Slide 2</p> | ||
<h1>Slide 2</h1> | ||
<button block (click)="goToPrevSlide()">Navigate Back</button> | ||
<button block (click)="goToNextSlide()">Navigate Forward</button> | ||
</ion-slide> | ||
<ion-slide padding> | ||
<p>Slide 3</p> | ||
<h1>Slide 3</h1> | ||
<button block (click)="getIndex()">Get Index</button> | ||
</ion-slide> | ||
</ion-slides> |