Skip to content

Commit

Permalink
chore: add stepper to prerender check (#7225)
Browse files Browse the repository at this point in the history
  • Loading branch information
devversion authored and kara committed Oct 3, 2017
1 parent 80310a5 commit 199056c
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
27 changes: 27 additions & 0 deletions src/universal-app/kitchen-sink/kitchen-sink.html
Original file line number Diff line number Diff line change
Expand Up @@ -281,3 +281,30 @@ <h3 mat-subheader>Groceries</h3>
<mat-list-option value="bananas">Bananas</mat-list-option>
<mat-list-option value="oranges">Oranges</mat-list-option>
</mat-selection-list>

<h2>Vertical Stepper</h2>

<mat-vertical-stepper>
<mat-step label="Step 1">Content 1</mat-step>
<mat-step label="Step 1">Content 2</mat-step>
</mat-vertical-stepper>

<h2>Vertical Stepper (with label template)</h2>

<mat-vertical-stepper>
<mat-step>
<ng-template matStepLabel>NgTemplate Label #1</ng-template>
Content 1
</mat-step>
<mat-step>
<ng-template matStepLabel>NgTemplate Label #2</ng-template>
Content 2
</mat-step>
</mat-vertical-stepper>

<h2>Horizontal Stepper</h2>

<mat-horizontal-stepper>
<mat-step label="Step 1">Content 1</mat-step>
<mat-step label="Step 2">Content 2</mat-step>
</mat-horizontal-stepper>
2 changes: 2 additions & 0 deletions src/universal-app/kitchen-sink/kitchen-sink.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import {
MatTabsModule,
MatToolbarModule,
MatTooltipModule,
MatStepperModule,
} from '@angular/material';
import {
CdkTableModule,
Expand Down Expand Up @@ -97,6 +98,7 @@ export class KitchenSink {
MatExpansionModule,
MatSortModule,
MatTableModule,
MatStepperModule,

// CDK Modules
CdkTableModule
Expand Down
14 changes: 14 additions & 0 deletions src/universal-app/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Configuration for IDEs only.
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "..",
"baseUrl": ".",
"paths": {
"@angular/cdk/*": ["../cdk/*"],
"@angular/material/*": ["../lib/*"],
"@angular/material": ["../lib/public_api"]
}
},
"include": ["./**/*.ts"]
}

0 comments on commit 199056c

Please sign in to comment.