Skip to content

Commit a6bd6ff

Browse files
committed
update angular version to 19
1 parent e1a244a commit a6bd6ff

17 files changed

+3466
-2658
lines changed

starters/angular/basic/package-lock.json

Lines changed: 3386 additions & 2564 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

starters/angular/basic/package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,26 +11,26 @@
1111
},
1212
"private": true,
1313
"dependencies": {
14-
"@angular/animations": "^18.2.13",
15-
"@angular/common": "^18.2.13",
16-
"@angular/compiler": "^18.2.13",
17-
"@angular/core": "^18.2.13",
18-
"@angular/forms": "^18.2.13",
19-
"@angular/platform-browser": "^18.2.13",
20-
"@angular/platform-browser-dynamic": "^18.2.13",
21-
"@angular/platform-server": "^18.2.13",
22-
"@angular/router": "^18.2.13",
23-
"@angular/ssr": "^18.2.14",
14+
"@angular/animations": "^19.1.4",
15+
"@angular/common": "^19.1.4",
16+
"@angular/compiler": "^19.1.4",
17+
"@angular/core": "^19.1.4",
18+
"@angular/forms": "^19.1.4",
19+
"@angular/platform-browser": "^19.1.4",
20+
"@angular/platform-browser-dynamic": "^19.1.4",
21+
"@angular/platform-server": "^19.1.4",
22+
"@angular/router": "^19.1.4",
23+
"@angular/ssr": "^19.1.6",
2424
"express": "^4.18.2",
2525
"rxjs": "~7.8.0",
2626
"tslib": "^2.3.0",
2727
"uuid": "^9.0.1",
28-
"zone.js": "~0.14.10"
28+
"zone.js": "~0.15.0"
2929
},
3030
"devDependencies": {
31-
"@angular-devkit/build-angular": "^18.2.14",
32-
"@angular/cli": "^18.2.14",
33-
"@angular/compiler-cli": "^18.2.13",
31+
"@angular-devkit/build-angular": "^19.1.6",
32+
"@angular/cli": "^19.1.6",
33+
"@angular/compiler-cli": "^19.1.4",
3434
"@types/express": "^4.17.21",
3535
"@types/jasmine": "~5.1.0",
3636
"@types/uuid": "^9.0.8",

starters/angular/basic/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { APP_BASE_HREF } from '@angular/common';
2-
import { CommonEngine } from '@angular/ssr';
2+
import { CommonEngine } from '@angular/ssr/node';
33
import express from 'express';
44
import { fileURLToPath } from 'node:url';
55
import { dirname, join, resolve } from 'node:path';

starters/angular/basic/src/app/app.component.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,10 @@ import { FirebaseIconComponent } from './components/icons/firebase-icon.componen
77
import { ArrowBackIconComponent } from './components/icons/arrow-back-icon.component';
88

99
@Component({
10-
selector: 'app-root',
11-
standalone: true,
12-
imports: [RouterOutlet, AngularIconComponent, FirebaseIconComponent, ArrowBackIconComponent, RouterLink],
13-
templateUrl: './app.component.html',
14-
styleUrl: './app.component.scss'
10+
selector: 'app-root',
11+
imports: [RouterOutlet, AngularIconComponent, FirebaseIconComponent, ArrowBackIconComponent, RouterLink],
12+
templateUrl: './app.component.html',
13+
styleUrl: './app.component.scss'
1514
})
1615
export class AppComponent {
1716
private readonly router = inject(Router);

starters/angular/basic/src/app/components/card/card.component.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@ import { UpdateContentIfNotGeneratedByServerDirective } from '../../directives/u
33
import { getDateString, getRandomUUID } from '../../utils/metadata-generator';
44

55
@Component({
6-
selector: 'app-card',
7-
standalone: true,
8-
imports: [UpdateContentIfNotGeneratedByServerDirective],
9-
templateUrl: './card.component.html',
10-
styleUrl: './card.component.scss'
6+
selector: 'app-card',
7+
imports: [UpdateContentIfNotGeneratedByServerDirective],
8+
templateUrl: './card.component.html',
9+
styleUrl: './card.component.scss'
1110
})
1211
export class CardComponent {
1312
dateString = signal(getDateString());

starters/angular/basic/src/app/components/icons/angular-icon.component.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
import { Component } from '@angular/core';
22

33
@Component({
4-
selector: 'app-angular-icon',
5-
standalone: true,
6-
imports: [],
7-
template: `
4+
selector: 'app-angular-icon',
5+
imports: [],
6+
template: `
87
<svg width="138" height="34" viewBox="0 0 138 34" fill="none" xmlns="http://www.w3.org/2000/svg">
98
<path d="M22.1833 24.4295H8.80891L7.10692 28.5298L15.5018 33.3652L23.8967 28.5298L22.1833 24.4295Z" fill="currentColor"/>
109
<path d="M19.8948 19.0658L15.5018 8.39586L11.0974 19.0658H19.8948Z" fill="currentColor"/>
@@ -18,7 +17,7 @@ import { Component } from '@angular/core';
1817
<path d="M125.05 10.9571C124.394 10.5207 123.658 10.2106 122.865 10.0268C122.071 9.84303 121.266 9.73966 120.461 9.73966C119.288 9.73966 118.23 9.91194 117.264 10.2565C116.298 10.6011 115.482 11.1179 114.815 11.7956C114.148 12.4847 113.665 13.3346 113.377 14.3453L117.057 14.8622C117.253 14.2879 117.632 13.794 118.196 13.3691C118.759 12.9441 119.518 12.7374 120.484 12.7374C121.404 12.7374 122.094 12.9671 122.589 13.415C123.072 13.8629 123.313 14.4946 123.313 15.3216V15.3905C123.313 15.7695 123.175 16.0452 122.899 16.2174C122.623 16.3897 122.175 16.5276 121.565 16.608C120.956 16.6884 120.162 16.7802 119.185 16.8836C118.368 16.9755 117.586 17.1133 116.827 17.2971C116.068 17.4923 115.39 17.768 114.792 18.1355C114.194 18.503 113.711 18.9969 113.366 19.6171C113.021 20.2374 112.848 21.0184 112.848 21.9602C112.848 23.0513 113.09 23.9701 113.584 24.7167C114.079 25.4632 114.746 26.026 115.585 26.405C116.436 26.7841 117.379 26.9793 118.437 26.9793C119.311 26.9793 120.07 26.853 120.714 26.6118C121.358 26.3706 121.899 26.049 122.336 25.647C122.773 25.245 123.106 24.8086 123.348 24.3491H123.474V26.6462H127.258V15.4709C127.258 14.3568 127.051 13.438 126.648 12.7029C126.246 11.9793 125.705 11.3936 125.05 10.9571ZM123.325 20.6738C123.325 21.294 123.164 21.8568 122.853 22.3851C122.543 22.902 122.094 23.3269 121.508 23.637C120.933 23.9472 120.243 24.1079 119.449 24.1079C118.633 24.1079 117.954 23.9242 117.425 23.5566C116.896 23.1891 116.632 22.6378 116.632 21.9142C116.632 21.4089 116.77 20.9954 117.034 20.6738C117.299 20.3522 117.667 20.0995 118.138 19.9158C118.598 19.732 119.127 19.6057 119.714 19.5253C119.978 19.4908 120.289 19.4449 120.634 19.3989C120.99 19.353 121.347 19.2955 121.715 19.2266C122.083 19.1577 122.405 19.0888 122.704 18.9969C123.003 18.905 123.21 18.8132 123.325 18.7098V20.6738Z" fill="currentColor"/>
1918
<path d="M137.32 9.75114C137.044 9.72817 136.803 9.72817 136.584 9.72817C135.63 9.72817 134.779 9.99234 134.031 10.5207C133.284 11.049 132.766 11.7956 132.456 12.7603H132.283V9.96937H128.465V26.6692H132.41V16.8491C132.41 16.137 132.571 15.5168 132.904 14.9655C133.226 14.4257 133.675 14.0008 134.25 13.6906C134.825 13.3805 135.469 13.2312 136.182 13.2312C136.515 13.2312 136.86 13.2542 137.217 13.3001C137.573 13.3461 137.838 13.4035 138.01 13.4609V9.83154C137.815 9.79708 137.585 9.77411 137.32 9.75114Z" fill="currentColor"/>
2019
</svg>
21-
`,
20+
`
2221
})
2322
export class AngularIconComponent {
2423

starters/angular/basic/src/app/components/icons/arrow-back-icon.component.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
import { Component } from '@angular/core';
22

33
@Component({
4-
selector: 'app-arrow-back-icon',
5-
standalone: true,
6-
imports: [],
7-
template: `
4+
selector: 'app-arrow-back-icon',
5+
imports: [],
6+
template: `
87
<svg
98
width="16"
109
height="16"
@@ -25,7 +24,7 @@ import { Component } from '@angular/core';
2524
</defs>
2625
</svg>
2726
`,
28-
styles: `
27+
styles: `
2928
:host {
3029
display: flex;
3130
}

starters/angular/basic/src/app/components/icons/arrow-box-icon.component.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
import { Component } from '@angular/core';
22

33
@Component({
4-
selector: 'app-arrow-box',
5-
standalone: true,
6-
imports: [],
7-
template: `
4+
selector: 'app-arrow-box',
5+
imports: [],
6+
template: `
87
<svg
98
width="16"
109
height="16"
@@ -24,7 +23,7 @@ import { Component } from '@angular/core';
2423
</clipPath>
2524
</defs>
2625
</svg>
27-
`,
26+
`
2827
})
2928
export class ArrowBoxIconComponent {
3029

starters/angular/basic/src/app/components/icons/firebase-icon.component.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
import { Component } from '@angular/core';
22

33
@Component({
4-
selector: 'app-firebase-icon',
5-
standalone: true,
6-
imports: [],
7-
template: `
4+
selector: 'app-firebase-icon',
5+
imports: [],
6+
template: `
87
<svg
98
width="115"
109
height="32"
@@ -51,6 +50,6 @@ import { Component } from '@angular/core';
5150
fill="currentColor"
5251
/>
5352
</svg>
54-
`,
53+
`
5554
})
5655
export class FirebaseIconComponent {}

starters/angular/basic/src/app/components/icons/github-icon.component.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
import { Component } from '@angular/core';
22

33
@Component({
4-
selector: 'app-github-icon',
5-
standalone: true,
6-
imports: [],
7-
template: `
4+
selector: 'app-github-icon',
5+
imports: [],
6+
template: `
87
<svg
98
width="20"
109
height="20"

starters/angular/basic/src/app/components/icons/twitter-icon.component.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
import { Component } from '@angular/core';
22

33
@Component({
4-
selector: 'app-twitter-icon',
5-
standalone: true,
6-
imports: [],
7-
template: `
4+
selector: 'app-twitter-icon',
5+
imports: [],
6+
template: `
87
<svg
98
width="20"
109
height="18"

starters/angular/basic/src/app/components/icons/youtube-icon.component.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
import { Component } from '@angular/core';
22

33
@Component({
4-
selector: 'app-youtube-icon',
5-
standalone: true,
6-
imports: [],
7-
template: `
4+
selector: 'app-youtube-icon',
5+
imports: [],
6+
template: `
87
<svg
98
width="22"
109
height="16"

starters/angular/basic/src/app/pages/deferrable-views/deferrable-views.component.ts

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,13 @@ import { Component } from '@angular/core';
22
import { CardComponent } from '../../components/card/card.component';
33

44
@Component({
5-
selector: 'app-deferrable-views',
6-
standalone: true,
7-
imports: [CardComponent],
8-
templateUrl: './deferrable-views.component.html',
9-
styleUrl: './deferrable-views.component.scss',
10-
host: {
11-
'class': 'content'
12-
}
5+
selector: 'app-deferrable-views',
6+
imports: [CardComponent],
7+
templateUrl: './deferrable-views.component.html',
8+
styleUrl: './deferrable-views.component.scss',
9+
host: {
10+
'class': 'content'
11+
}
1312
})
1413
export class DeferrableViewsComponent {
1514

starters/angular/basic/src/app/pages/home/home.component.ts

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,13 @@ import { YouTubeIconComponent } from '../../components/icons/youtube-icon.compon
99
const icons = [ArrowBoxIconComponent, GithubIconComponent, TwitterIconComponent, YouTubeIconComponent];
1010

1111
@Component({
12-
selector: 'app-home',
13-
standalone: true,
14-
imports: [RouterLink, ExternalLinkDirective, ...icons],
15-
templateUrl: './home.component.html',
16-
styleUrl: './home.component.scss',
17-
host: {
18-
'class': 'content'
19-
}
12+
selector: 'app-home',
13+
imports: [RouterLink, ExternalLinkDirective, ...icons],
14+
templateUrl: './home.component.html',
15+
styleUrl: './home.component.scss',
16+
host: {
17+
'class': 'content'
18+
}
2019
})
2120
export class HomeComponent {
2221

starters/angular/basic/src/app/pages/not-found/not-found.component.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
import { Component } from '@angular/core';
22

33
@Component({
4-
selector: 'app-not-found',
5-
standalone: true,
6-
imports: [],
7-
templateUrl: './not-found.component.html',
8-
styleUrl: './not-found.component.scss'
4+
selector: 'app-not-found',
5+
imports: [],
6+
templateUrl: './not-found.component.html',
7+
styleUrl: './not-found.component.scss'
98
})
109
export class NotFoundComponent {
1110

starters/angular/basic/src/app/pages/ssg/ssg.component.ts

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@ import { Component } from '@angular/core';
22
import { CardComponent } from '../../components/card/card.component';
33

44
@Component({
5-
selector: 'app-ssg',
6-
standalone: true,
7-
imports: [CardComponent],
8-
templateUrl: './ssg.component.html',
9-
styleUrl: './ssg.component.scss',
10-
host: {
11-
'class': 'content'
12-
}
5+
selector: 'app-ssg',
6+
imports: [CardComponent],
7+
templateUrl: './ssg.component.html',
8+
styleUrl: './ssg.component.scss',
9+
host: {
10+
'class': 'content'
11+
}
1312
})
1413
export class SsgComponent {}

starters/angular/basic/src/app/pages/ssr/ssr.component.ts

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@ import { Component } from '@angular/core';
22
import { CardComponent } from '../../components/card/card.component';
33

44
@Component({
5-
selector: 'app-ssr',
6-
standalone: true,
7-
imports: [CardComponent],
8-
templateUrl: './ssr.component.html',
9-
styleUrl: './ssr.component.scss',
10-
host: {
11-
'class': 'content'
12-
}
5+
selector: 'app-ssr',
6+
imports: [CardComponent],
7+
templateUrl: './ssr.component.html',
8+
styleUrl: './ssr.component.scss',
9+
host: {
10+
'class': 'content'
11+
}
1312
})
1413
export class SsrComponent {}

0 commit comments

Comments
 (0)