Skip to content

Commit a8b5586

Browse files
committed
feat: update to angular 19
1 parent 3d78aa0 commit a8b5586

File tree

14 files changed

+1741
-1533
lines changed

14 files changed

+1741
-1533
lines changed

angular.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
"i18nMissingTranslation": "error",
2727
"index": "src/index.html",
2828
"polyfills": [
29-
"zone.js"
29+
"zone.js",
30+
"@angular/localize/init"
3031
],
3132
"tsConfig": "tsconfig.app.json",
3233
"assets": [

package.json

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,32 +12,32 @@
1212
},
1313
"private": true,
1414
"dependencies": {
15-
"@angular/animations": "^18.2.13",
15+
"@angular/animations": "^19.0.5",
1616
"@angular/cdk": "^18.2.14",
17-
"@angular/common": "^18.2.13",
18-
"@angular/compiler": "^18.2.13",
19-
"@angular/core": "^18.2.13",
20-
"@angular/forms": "^18.2.13",
21-
"@angular/localize": "^18.2.13",
17+
"@angular/common": "^19.0.5",
18+
"@angular/compiler": "^19.0.5",
19+
"@angular/core": "^19.0.5",
20+
"@angular/forms": "^19.0.5",
21+
"@angular/localize": "^19.0.5",
2222
"@angular/material": "^18.2.14",
23-
"@angular/platform-browser": "^18.2.13",
24-
"@angular/platform-browser-dynamic": "^18.2.13",
25-
"@angular/platform-server": "^18.2.13",
26-
"@angular/router": "^18.2.13",
27-
"@angular/service-worker": "^18.2.13",
28-
"@angular/ssr": "^18.2.12",
23+
"@angular/platform-browser": "^19.0.5",
24+
"@angular/platform-browser-dynamic": "^19.0.5",
25+
"@angular/platform-server": "^19.0.5",
26+
"@angular/router": "^19.0.5",
27+
"@angular/service-worker": "^19.0.5",
28+
"@angular/ssr": "^19.0.6",
2929
"@sentry/browser": "^5.5.0",
3030
"angular-oauth2-oidc": "^15.0.1",
3131
"express": "^4.18.2",
3232
"rxjs": "~7.8.0",
3333
"tslib": "^2.3.0",
34-
"zone.js": "~0.14.10"
34+
"zone.js": "~0.15.0"
3535
},
3636
"devDependencies": {
37-
"@angular-devkit/build-angular": "^18.2.12",
38-
"@angular/cli": "^18.2.12",
39-
"@angular/compiler-cli": "^18.2.13",
40-
"@angular/language-service": "^18.2.13",
37+
"@angular-devkit/build-angular": "^19.0.6",
38+
"@angular/cli": "^19.0.6",
39+
"@angular/compiler-cli": "^19.0.5",
40+
"@angular/language-service": "^19.0.5",
4141
"@types/express": "^4.17.17",
4242
"@types/jasmine": "~3.3.8",
4343
"@types/jasminewd2": "~2.0.3",
@@ -50,6 +50,6 @@
5050
"karma-jasmine-html-reporter": "~2.1.0",
5151
"protractor": "~7.0.0",
5252
"tslint": "~6.1.0",
53-
"typescript": "~5.4.5"
53+
"typescript": "~5.6.3"
5454
}
5555
}

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 * as express from 'express';
44
import { fileURLToPath } from 'node:url';
55
import { dirname, join, resolve } from 'node:path';

src/app/about/about.component.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ import { Component, OnInit } from '@angular/core';
22
import { LoadingService } from '../services/LoadingService';
33

44
@Component({
5-
selector: 'app-about',
6-
templateUrl: './about.component.html',
7-
styleUrls: ['./about.component.less']
5+
selector: 'app-about',
6+
templateUrl: './about.component.html',
7+
styleUrls: ['./about.component.less'],
8+
standalone: false
89
})
910
export class AboutComponent implements OnInit {
1011

src/app/account/auth-callback/auth-callback.component.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@ import { OAuthService } from 'angular-oauth2-oidc';
33
import { Router } from '@angular/router';
44

55
@Component({
6-
selector: 'app-auth-callback',
7-
templateUrl: './auth-callback.component.html',
8-
styleUrls: ['./auth-callback.component.less']
6+
selector: 'app-auth-callback',
7+
templateUrl: './auth-callback.component.html',
8+
styleUrls: ['./auth-callback.component.less'],
9+
standalone: false
910
})
1011
export class AuthCallbackComponent implements OnInit {
1112

src/app/account/login/login.component.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ import { Component, OnInit } from '@angular/core';
22
import { OAuthService } from 'angular-oauth2-oidc';
33

44
@Component({
5-
selector: 'app-login',
6-
templateUrl: './login.component.html',
7-
styleUrls: ['./login.component.less']
5+
selector: 'app-login',
6+
templateUrl: './login.component.html',
7+
styleUrls: ['./login.component.less'],
8+
standalone: false
89
})
910
export class LoginComponent implements OnInit {
1011

src/app/account/my-reservation/my-reservation.component.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ import { Reservation } from 'src/app/models/Reservation';
55
import { ColumnInfo } from 'src/app/models/ColumnInfo';
66

77
@Component({
8-
selector: 'app-my-reservation',
9-
templateUrl: './my-reservation.component.html',
10-
styleUrls: ['./my-reservation.component.less']
8+
selector: 'app-my-reservation',
9+
templateUrl: './my-reservation.component.html',
10+
styleUrls: ['./my-reservation.component.less'],
11+
standalone: false
1112
})
1213
export class MyReservationComponent implements OnInit {
1314

src/app/app.component.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ import { OAuthService } from 'angular-oauth2-oidc';
66
import * as authConfig from './shared/authConfig';
77

88
@Component({
9-
selector: 'app-root',
10-
templateUrl: './app.component.html',
11-
styleUrls: ['./app.component.less']
9+
selector: 'app-root',
10+
templateUrl: './app.component.html',
11+
styleUrls: ['./app.component.less'],
12+
standalone: false
1213
})
1314
export class AppComponent {
1415
constructor(public loadingSvc: LoadingService,

src/app/notice/notice-detail/notice-detail.component.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ import { Notice } from '../../models/Notice';
66
import { Router } from '@angular/router';
77

88
@Component({
9-
selector: 'app-notice-detail',
10-
templateUrl: './notice-detail.component.html'
9+
selector: 'app-notice-detail',
10+
templateUrl: './notice-detail.component.html',
11+
standalone: false
1112
})
1213
export class NoticeDetailComponent implements OnInit {
1314

src/app/notice/notice-list/notice-list.component.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ import { NoticeService } from '../../services/NoticeService';
44
import { LoadingService } from '../../services/LoadingService';
55

66
@Component({
7-
selector: 'app-notice-list',
8-
templateUrl: './notice-list.component.html'
7+
selector: 'app-notice-list',
8+
templateUrl: './notice-list.component.html',
9+
standalone: false
910
})
1011
export class NoticeListComponent implements OnInit {
1112

0 commit comments

Comments
 (0)