Skip to content

Commit 0d6ac92

Browse files
SkyZeroZxkirjs
authored andcommitted
docs: remove Component suffix from examples in DI & Drag and Drop
Updates documentation examples to remove the `Component` suffix, aligning them with the current Angular Style Guide.
1 parent 241bdeb commit 0d6ac92

82 files changed

Lines changed: 338 additions & 313 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

adev/src/content/examples/drag-drop/src/axis-lock/app/app.component.css renamed to adev/src/content/examples/drag-drop/src/axis-lock/app/app.css

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,15 @@
1515
z-index: 1;
1616
font-family: sans-serif;
1717
transition: box-shadow 200ms cubic-bezier(0, 0, 0.2, 1);
18-
box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2),
19-
0 2px 2px 0 rgba(0, 0, 0, 0.14),
20-
0 1px 5px 0 rgba(0, 0, 0, 0.12);
18+
box-shadow:
19+
0 3px 1px -2px rgba(0, 0, 0, 0.2),
20+
0 2px 2px 0 rgba(0, 0, 0, 0.14),
21+
0 1px 5px 0 rgba(0, 0, 0, 0.12);
2122
}
2223

2324
.example-box:active {
24-
box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.2),
25-
0 8px 10px 1px rgba(0, 0, 0, 0.14),
26-
0 3px 14px 2px rgba(0, 0, 0, 0.12);
25+
box-shadow:
26+
0 5px 5px -3px rgba(0, 0, 0, 0.2),
27+
0 8px 10px 1px rgba(0, 0, 0, 0.14),
28+
0 3px 14px 2px rgba(0, 0, 0, 0.12);
2729
}

adev/src/content/examples/drag-drop/src/axis-lock/app/app.component.html renamed to adev/src/content/examples/drag-drop/src/axis-lock/app/app.html

File renamed without changes.

adev/src/content/examples/drag-drop/src/axis-lock/app/app.component.ts renamed to adev/src/content/examples/drag-drop/src/axis-lock/app/app.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import {Component} from '@angular/core';
66
*/
77
@Component({
88
selector: 'cdk-drag-drop-axis-lock-example',
9-
templateUrl: 'app.component.html',
10-
styleUrl: 'app.component.css',
9+
templateUrl: 'app.html',
10+
styleUrl: 'app.css',
1111
imports: [CdkDrag],
1212
})
1313
export class CdkDragDropAxisLockExample {}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {bootstrapApplication} from '@angular/platform-browser';
22

3-
import {CdkDragDropAxisLockExample} from './app/app.component';
3+
import {CdkDragDropAxisLockExample} from './app/app';
44

55
bootstrapApplication(CdkDragDropAxisLockExample);

adev/src/content/examples/drag-drop/src/boundary/app/app.component.css renamed to adev/src/content/examples/drag-drop/src/boundary/app/app.css

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,17 @@
1717
padding: 10px;
1818
font-family: sans-serif;
1919
transition: box-shadow 200ms cubic-bezier(0, 0, 0.2, 1);
20-
box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2),
21-
0 2px 2px 0 rgba(0, 0, 0, 0.14),
22-
0 1px 5px 0 rgba(0, 0, 0, 0.12);
20+
box-shadow:
21+
0 3px 1px -2px rgba(0, 0, 0, 0.2),
22+
0 2px 2px 0 rgba(0, 0, 0, 0.14),
23+
0 1px 5px 0 rgba(0, 0, 0, 0.12);
2324
}
2425

2526
.example-box:active {
26-
box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.2),
27-
0 8px 10px 1px rgba(0, 0, 0, 0.14),
28-
0 3px 14px 2px rgba(0, 0, 0, 0.12);
27+
box-shadow:
28+
0 5px 5px -3px rgba(0, 0, 0, 0.2),
29+
0 8px 10px 1px rgba(0, 0, 0, 0.14),
30+
0 3px 14px 2px rgba(0, 0, 0, 0.12);
2931
}
3032

3133
.example-boundary {

adev/src/content/examples/drag-drop/src/boundary/app/app.component.html renamed to adev/src/content/examples/drag-drop/src/boundary/app/app.html

File renamed without changes.

adev/src/content/examples/drag-drop/src/boundary/app/app.component.ts renamed to adev/src/content/examples/drag-drop/src/boundary/app/app.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import {Component} from '@angular/core';
66
*/
77
@Component({
88
selector: 'cdk-drag-drop-boundary-example',
9-
templateUrl: 'app.component.html',
10-
styleUrl: 'app.component.css',
9+
templateUrl: 'app.html',
10+
styleUrl: 'app.css',
1111
imports: [CdkDrag],
1212
})
1313
export class CdkDragDropBoundaryExample {}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {bootstrapApplication} from '@angular/platform-browser';
22

3-
import {CdkDragDropBoundaryExample} from './app/app.component';
3+
import {CdkDragDropBoundaryExample} from './app/app';
44

55
bootstrapApplication(CdkDragDropBoundaryExample);

adev/src/content/examples/drag-drop/src/connected-sorting-group/app/app.component.css renamed to adev/src/content/examples/drag-drop/src/connected-sorting-group/app/app.css

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,10 @@
3434
.cdk-drag-preview {
3535
box-sizing: border-box;
3636
border-radius: 4px;
37-
box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.2),
38-
0 8px 10px 1px rgba(0, 0, 0, 0.14),
39-
0 3px 14px 2px rgba(0, 0, 0, 0.12);
37+
box-shadow:
38+
0 5px 5px -3px rgba(0, 0, 0, 0.2),
39+
0 8px 10px 1px rgba(0, 0, 0, 0.14),
40+
0 3px 14px 2px rgba(0, 0, 0, 0.12);
4041
}
4142

4243
.cdk-drag-placeholder {

adev/src/content/examples/drag-drop/src/connected-sorting-group/app/app.component.html renamed to adev/src/content/examples/drag-drop/src/connected-sorting-group/app/app.html

File renamed without changes.

0 commit comments

Comments
 (0)