-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(demo): fix carousel page (#2885)
- Loading branch information
1 parent
417d0a2
commit 9be31b5
Showing
1 changed file
with
58 additions
and
10 deletions.
There are no files selected for viewing
68 changes: 58 additions & 10 deletions
68
demo/src/app/components/+carousel/carousel-section.component.html
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,10 +1,58 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Title</title> | ||
</head> | ||
<body> | ||
|
||
</body> | ||
</html> | ||
<demo-section [name]="name" [src]="src"> | ||
<p>A slideshow component for cycling through elements—images or slides of text—like a carousel. <em>Nested carousels are not supported.</em></p> | ||
|
||
<h2>Contents</h2> | ||
<ul> | ||
<li><a routerLink="." fragment="usage">Usage</a></li> | ||
<li><a routerLink="." fragment="examples">Examples</a> | ||
<ul> | ||
<li><a routerLink="." fragment="captions">Optional captions</a></li> | ||
<li><a routerLink="." fragment="config">Configuring defaults</a></li> | ||
<li><a routerLink="." fragment="dynamic">Dynamic Slides</a></li> | ||
</ul> | ||
</li> | ||
<li><a routerLink="." fragment="api-reference">API Reference</a> | ||
<ul> | ||
<li><a routerLink="." fragment="carousel-component">CarouselComponent</a></li> | ||
<li><a routerLink="." fragment="slide-component">SlideComponent</a></li> | ||
<li><a routerLink="." fragment="carousel-config">CarouselConfig</a></li> | ||
</ul> | ||
</li> | ||
</ul> | ||
|
||
<h2 routerLink="." fragment="usage" id="usage">Usage</h2> | ||
|
||
<p [innerHtml]="titleDoc"></p> | ||
|
||
<h2 routerLink="." fragment="examples" id="examples">Examples</h2> | ||
|
||
<!-- basic --> | ||
<ng-sample-box [ts]="demos.basic.component" [html]="demos.basic.html"> | ||
<demo-carousel-basic></demo-carousel-basic> | ||
</ng-sample-box> | ||
|
||
<!-- captions --> | ||
<h3 routerLink="." fragment="captions" id="captions">Optional captions</h3> | ||
<p>Add captions to your slides easily with the <code>.carousel-caption</code> element within any <code><slide></code>. | ||
Place just about any optional HTML within there and it will be automatically aligned and formatted.</p> | ||
<ng-sample-box [ts]="demos.captions.component" [html]="demos.captions.html"> | ||
<demo-carousel-captions></demo-carousel-captions> | ||
</ng-sample-box> | ||
|
||
<!-- config --> | ||
<h3 routerLink="." fragment="config" id="config">Configuring defaults</h3> | ||
<ng-sample-box [ts]="demos.config.component" [html]="demos.config.html"> | ||
<demo-carousel-config></demo-carousel-config> | ||
</ng-sample-box> | ||
|
||
<!-- dynamic --> | ||
<h3 routerLink="." fragment="dynamic" id="dynamic">Dynamic Slides</h3> | ||
<ng-sample-box [ts]="demos.dynamic.component" [html]="demos.dynamic.html"> | ||
<demo-carousel-dynamic></demo-carousel-dynamic> | ||
</ng-sample-box> | ||
|
||
<h3 routerLink="." fragment="api-reference" id="api-reference">API Reference</h3> | ||
<ng-api-doc id="carousel-component" directive="CarouselComponent"></ng-api-doc> | ||
<ng-api-doc id="slide-component" directive="SlideComponent"></ng-api-doc> | ||
<ng-api-doc-config id="carousel-config" type="CarouselConfig"></ng-api-doc-config> | ||
</demo-section> |