Skip to content

Commit b772ebd

Browse files
egorbworkEgor Boaghiwawyed
authored
Chore: Angular 19 (#919)
* Apply angular 19 dependencies in package.json * Add missing standalone false doe the angular components. * chore: update dependencies * chore: update dependencies --------- Co-authored-by: Egor Boaghi <[email protected]> Co-authored-by: wawyed <[email protected]>
1 parent 160e2c2 commit b772ebd

9 files changed

+2842
-1973
lines changed

angular.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -60,18 +60,18 @@
6060
"serve": {
6161
"builder": "@angular-devkit/build-angular:dev-server",
6262
"options": {
63-
"browserTarget": "angular-cli-app:build"
63+
"buildTarget": "angular-cli-app:build"
6464
},
6565
"configurations": {
6666
"production": {
67-
"browserTarget": "angular-cli-app:build:production"
67+
"buildTarget": "angular-cli-app:build:production"
6868
}
6969
}
7070
},
7171
"extract-i18n": {
7272
"builder": "@angular-devkit/build-angular:extract-i18n",
7373
"options": {
74-
"browserTarget": "angular-cli-app:build"
74+
"buildTarget": "angular-cli-app:build"
7575
}
7676
},
7777
"test": {
@@ -121,4 +121,4 @@
121121
"cli": {
122122
"analytics": false
123123
}
124-
}
124+
}

package.json

+21-21
Original file line numberDiff line numberDiff line change
@@ -19,35 +19,35 @@
1919
},
2020
"license": "MIT",
2121
"dependencies": {
22-
"@angular/animations": "^18.0.6",
23-
"@angular/common": "^18.0.6",
24-
"@angular/compiler": "^18.0.6",
25-
"@angular/core": "^18.0.6",
26-
"@angular/forms": "^18.0.6",
27-
"@angular/platform-browser": "^18.0.6",
28-
"@angular/platform-browser-dynamic": "^18.0.6",
29-
"@angular/router": "^18.0.6",
30-
"@angular/upgrade": "^18.0.6",
31-
"@uirouter/angular": "^14.0.0",
22+
"@angular/animations": "^19.0.5",
23+
"@angular/common": "^19.0.5",
24+
"@angular/compiler": "^19.0.5",
25+
"@angular/core": "^19.0.5",
26+
"@angular/forms": "^19.0.5",
27+
"@angular/platform-browser": "^19.0.5",
28+
"@angular/platform-browser-dynamic": "^19.0.5",
29+
"@angular/router": "^19.0.5",
30+
"@angular/upgrade": "^19.0.5",
31+
"@uirouter/angular": "^16.0.0",
3232
"@uirouter/angular-hybrid": "^18.0.0",
33-
"@uirouter/angularjs": "^1.1.0",
34-
"@uirouter/core": "^6.1.0",
33+
"@uirouter/angularjs": "^1.1.1",
34+
"@uirouter/core": "^6.1.1",
3535
"@uirouter/rx": "1.0.0",
3636
"@uirouter/visualizer": "^7.2.1",
3737
"angular": "1.8.3",
3838
"core-js": "^2.4.1",
3939
"postcss": "8.4.4",
40-
"rxjs": "^7.4.0",
40+
"rxjs": "~7.8.0",
4141
"rxjs-compat": "^6.6.7",
42-
"tslib": "2.6.2",
43-
"zone.js": "~0.14.4"
42+
"tslib": "^2.8.1",
43+
"zone.js": "~0.15.0"
4444
},
4545
"devDependencies": {
46-
"@angular-devkit/build-angular": "^18.0.7",
47-
"@angular/cli": "^18.0.7",
48-
"@angular/compiler-cli": "^18.0.6",
49-
"@angular/language-service": "^18.0.6",
50-
"@types/angular": "^1.8.3",
46+
"@angular-devkit/build-angular": "^19.0.5",
47+
"@angular/cli": "^19.0.5",
48+
"@angular/compiler-cli": "^19.0.5",
49+
"@angular/language-service": "^19.0.5",
50+
"@types/angular": "^1.8.9",
5151
"@types/jasmine": "~3.10.2",
5252
"@types/jasminewd2": "~2.0.10",
5353
"@types/node": "^16.11.11",
@@ -64,7 +64,7 @@
6464
"shx": "0.3.3",
6565
"ts-node": "~10.9.2",
6666
"tslint": "~6.1.0",
67-
"typescript": "5.4.5",
67+
"typescript": "~5.6.3",
6868
"wait-on": "6.0.0"
6969
},
7070
"packageManager": "[email protected]+sha1.ac34549e6aa8e7ead463a7407e1c7390f61a6610"

src/app/contacts/contact.component.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,17 @@ import {Component, Input} from "@angular/core";
88
*/
99
@Component({
1010
selector: 'contact',
11+
standalone: false,
1112
template: `
1213
<div class="contact">
1314
<contact-detail [contact]="contact"></contact-detail>
14-
15+
1516
<!-- This button has an ui-sref to the mymessages.compose state. The ui-sref provides the mymessages.compose
1617
state with an non-url parameter, which is used as the initial message model -->
1718
<button class="btn btn-primary" uiSref="mymessages.compose" [uiParams]="{ message: { to: contact.email } }">
1819
<i class="fa fa-envelope"></i><span>Message</span>
1920
</button>
20-
21+
2122
<!-- This button has a relative ui-sref to the contacts.contact.edit state. -->
2223
<button class="btn btn-primary" uiSref=".edit">
2324
<i class="fa fa-pencil"></i><span>Edit Contact</span>

src/app/contacts/contactDetail.component.ts

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {Component, Input} from "@angular/core";
55
*/
66
@Component({
77
selector: 'contact-detail',
8+
standalone: false,
89
template: `
910
<div class="flex-h">
1011
<div class="details">

src/app/contacts/contactList.component.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@ import {Component, Input} from "@angular/core";
22

33
/**
44
* This component renders a list of contacts.
5-
*
5+
*
66
* At the top is a "new contact" button.
77
* Each list item is a clickable link to the `contacts.contact` details substate
88
*/
99
@Component({
1010
selector: 'contact-list',
11+
standalone: false,
1112
template: `
1213
<ul class="selectlist list-unstyled">
1314
<li>

src/app/contacts/contacts.component.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@ import {Component, Input} from "@angular/core";
88
*/
99
@Component({
1010
selector: 'contacts',
11+
standalone: false,
1112
template: `
1213
<div class="my-contacts flex-h">
13-
14+
1415
<contact-list [contacts]="contacts" class="flex nogrow"></contact-list>
15-
16+
1617
<div ui-view>
1718
<!-- This default content is displayed when the ui-view is not filled in by a child state -->
1819
<h4 style="margin: 1em 2em;">Select a contact</h4>

src/app/contacts/editContact.component.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ import {Component, Input, Inject, Optional} from "@angular/core";
2828
*/
2929
@Component({
3030
selector: 'edit-contact',
31+
standalone: false,
3132
template: `
3233
<div class="contact">
3334
<div class="details">
@@ -43,9 +44,9 @@ import {Component, Input, Inject, Optional} from "@angular/core";
4344
<div><label>Zip</label><input type="text" [(ngModel)]="contact.address.zip"></div>
4445
<div><label>Image</label><input type="text" [(ngModel)]="contact.picture"></div>
4546
</div>
46-
47+
4748
<hr>
48-
49+
4950
<div>
5051
<!-- This button's ui-sref relatively targets the parent state, i.e., contacts.contact -->
5152
<button class="btn btn-primary" uiSref="^"><i class="fa fa-close"></i><span>Cancel</span></button>

src/app/prefs/prefs.component.ts

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import { Component, Inject } from '@angular/core';
1313
<button class="btn btn-primary" (click)="savePrefs()">Save</button>
1414
</div>
1515
`,
16+
standalone: false,
1617
})
1718
export class PrefsComponent {
1819
prefs;

0 commit comments

Comments
 (0)