Skip to content

Commit 511d9ca

Browse files
SkyZeroZxthePunderWoman
authored andcommitted
docs: remove Component suffix in animations, HTTP, and SSR guides
Removes the unnecessary `Component` suffix from examples. Also fixes button styling in the animations examples, which previously did not render correctly in dark mode.
1 parent c63bc58 commit 511d9ca

94 files changed

Lines changed: 325 additions & 273 deletions

File tree

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/animations/src/app/about.component.ts

Lines changed: 0 additions & 8 deletions
This file was deleted.

adev/src/content/examples/animations/src/app/about.component.css renamed to adev/src/content/examples/animations/src/app/about.css

File renamed without changes.

adev/src/content/examples/animations/src/app/about.component.html renamed to adev/src/content/examples/animations/src/app/about.html

File renamed without changes.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import {Component} from '@angular/core';
2+
3+
@Component({
4+
selector: 'app-about',
5+
templateUrl: './about.html',
6+
styleUrls: ['./about.css'],
7+
})
8+
export class About {}

adev/src/content/examples/animations/src/app/animations-package/auto-height.component.css renamed to adev/src/content/examples/animations/src/app/animations-package/auto-height.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
margin-top: 1em;
99
font-weight: bold;
1010
font-size: 20px;
11-
background-color: blue;
11+
background: #3b82f6;
1212
color: #ebebeb;
1313
}

adev/src/content/examples/animations/src/app/animations-package/auto-height.component.html renamed to adev/src/content/examples/animations/src/app/animations-package/auto-height.html

File renamed without changes.

adev/src/content/examples/animations/src/app/animations-package/auto-height.component.ts renamed to adev/src/content/examples/animations/src/app/animations-package/auto-height.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ import {trigger, transition, state, animate, style} from '@angular/animations';
1010
transition('false <=> true', animate(1000)),
1111
]),
1212
],
13-
templateUrl: 'auto-height.component.html',
14-
styleUrl: 'auto-height.component.css',
13+
templateUrl: 'auto-height.html',
14+
styleUrl: 'auto-height.css',
1515
})
16-
export class AutoHeightComponent {
16+
export class AutoHeight {
1717
isOpen = signal(false);
1818

1919
toggle() {

adev/src/content/examples/animations/src/app/animations-package/increment-decrement.component.css renamed to adev/src/content/examples/animations/src/app/animations-package/increment-decrement.css

File renamed without changes.

adev/src/content/examples/animations/src/app/animations-package/increment-decrement.component.html renamed to adev/src/content/examples/animations/src/app/animations-package/increment-decrement.html

File renamed without changes.

adev/src/content/examples/animations/src/app/animations-package/increment-decrement.component.ts renamed to adev/src/content/examples/animations/src/app/animations-package/increment-decrement.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import {trigger, transition, animate, style, query, stagger} from '@angular/anim
55

66
@Component({
77
selector: 'app-increment-decrement',
8-
templateUrl: 'increment-decrement.component.html',
9-
styleUrls: ['increment-decrement.component.css'],
8+
templateUrl: 'increment-decrement.html',
9+
styleUrls: ['increment-decrement.css'],
1010
animations: [
1111
trigger('incrementAnimation', [
1212
transition(':increment', [
@@ -18,7 +18,7 @@ import {trigger, transition, animate, style, query, stagger} from '@angular/anim
1818
]),
1919
],
2020
})
21-
export class IncrementDecrementComponent {
21+
export class IncrementDecrement {
2222
num = signal(0);
2323

2424
modify(n: number) {

0 commit comments

Comments
 (0)