Skip to content

Commit aa57b8f

Browse files
authored
docs: update generated file names to the current style guide (#33656)
1 parent 6a92017 commit aa57b8f

2 files changed

Lines changed: 15 additions & 15 deletions

File tree

guides/creating-a-custom-stepper-using-the-cdk-stepper.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@ In this guide, we'll learn how to build our own custom stepper using the CDK ste
1010

1111
Now we are ready to create our custom stepper component. Therefore, we need to create a new Angular component which extends `CdkStepper`:
1212

13-
**custom-stepper.component.ts**
13+
**custom-stepper.ts**
1414

1515
```ts
1616
@Component({
1717
selector: 'app-custom-stepper',
18-
templateUrl: './custom-stepper.component.html',
19-
styleUrl: './custom-stepper.component.css',
18+
templateUrl: './custom-stepper.html',
19+
styleUrl: './custom-stepper.css',
2020
// This custom stepper provides itself as CdkStepper so that it can be recognized
2121
// by other components.
22-
providers: [{ provide: CdkStepper, useExisting: CustomStepperComponent }]
22+
providers: [{ provide: CdkStepper, useExisting: CustomStepper }]
2323
})
24-
export class CustomStepperComponent extends CdkStepper {
24+
export class CustomStepper extends CdkStepper {
2525
onClick(index: number): void {
2626
this.selectedIndex = index;
2727
}
@@ -32,7 +32,7 @@ After we've extended our component class from `CdkStepper` we can now access dif
3232

3333
This is the HTML template of our custom stepper component:
3434

35-
**custom-stepper.component.html**
35+
**custom-stepper.html**
3636

3737
```html
3838
<section class="container">
@@ -55,9 +55,9 @@ This is the HTML template of our custom stepper component:
5555
</section>
5656
```
5757

58-
In the `app.component.css` file we can now style the stepper however we want:
58+
In the `app.css` file we can now style the stepper however we want:
5959

60-
**custom-stepper.component.css**
60+
**custom-stepper.css**
6161

6262
```css
6363
.example-container {
@@ -97,9 +97,9 @@ In the `app.component.css` file we can now style the stepper however we want:
9797

9898
## Using our new custom stepper component
9999

100-
Now we are ready to use our new custom stepper component and fill it with steps. Therefore, we can, for example, add it to our `app.component.html` and define some steps:
100+
Now we are ready to use our new custom stepper component and fill it with steps. Therefore, we can, for example, add it to our `app.html` and define some steps:
101101

102-
**app.component.html**
102+
**app.html**
103103

104104
```html
105105
<app-custom-stepper>
@@ -128,7 +128,7 @@ The above example allows the user to freely navigate between all steps. The `Cdk
128128

129129
A simple example without using forms could look like this:
130130

131-
**app.component.html**
131+
**app.html**
132132

133133
```html
134134
<app-custom-stepper linear>
@@ -142,10 +142,10 @@ A simple example without using forms could look like this:
142142
</app-custom-stepper>
143143
```
144144

145-
**app.component.ts**
145+
**app.ts**
146146

147147
```ts
148-
export class AppComponent {
148+
export class App {
149149
completed = false;
150150

151151
completeStep(): void {

guides/getting-started.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ import {MatSlideToggle} from '@angular/material/slide-toggle';
4848
@Component({
4949
imports: [MatSlideToggle],
5050
})
51-
class AppComponent {}
51+
class App {}
5252
```
5353

54-
Add the `<mat-slide-toggle>` tag to the `app.component.html` like so:
54+
Add the `<mat-slide-toggle>` tag to the `app.html` like so:
5555

5656
```html
5757
<mat-slide-toggle>Toggle me!</mat-slide-toggle>

0 commit comments

Comments
 (0)