From bf58cd32aa69afaf11d3455ecc4d43c7b9280e32 Mon Sep 17 00:00:00 2001 From: Nathan Walker Date: Wed, 19 Nov 2025 19:14:39 -0800 Subject: [PATCH] feat: Angular 21 --- .vscode/settings.json | 3 + apps/nativescript-demo-ng/package.json | 7 +- apps/nativescript-demo-ng/project.json | 3 +- .../src/app/item/item-detail.component.ts | 2 +- .../src/app/item/items.component.ts | 4 +- .../src/app/item2/item-detail2.component.html | 2 +- .../src/app/item3/items.component.ts | 4 +- apps/nativescript-demo-ng/src/main.ts | 7 +- apps/nativescript-demo-ng/tsconfig.app.json | 2 +- apps/nativescript-demo-ng/tsconfig.spec.json | 2 +- migrations.json | 116 +- package-lock.json | 32730 +++++++++------- package.json | 82 +- packages/angular/package.json | 2 +- .../angular/src/lib/nativescript-ng-zone.ts | 2 - tsconfig.base.json | 2 +- 16 files changed, 19114 insertions(+), 13856 deletions(-) create mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..55712c1 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "typescript.tsdk": "node_modules/typescript/lib" +} \ No newline at end of file diff --git a/apps/nativescript-demo-ng/package.json b/apps/nativescript-demo-ng/package.json index 270596b..d88ed77 100644 --- a/apps/nativescript-demo-ng/package.json +++ b/apps/nativescript-demo-ng/package.json @@ -6,10 +6,9 @@ "@nativescript/core": "file:../../node_modules/@nativescript/core" }, "devDependencies": { - "@nativescript/android": "~8.9.0", - "@nativescript/ios": "~8.9.0", + "@nativescript/android": "~9.0.0", + "@nativescript/ios": "~9.0.0", "@nativescript/tailwind": "^2.1.0", - "@nativescript/unit-test-runner": "^3.0.1", - "@nativescript/visionos": "~8.9.0" + "@nativescript/unit-test-runner": "4.0.0" } } diff --git a/apps/nativescript-demo-ng/project.json b/apps/nativescript-demo-ng/project.json index c3946f4..e69ac23 100644 --- a/apps/nativescript-demo-ng/project.json +++ b/apps/nativescript-demo-ng/project.json @@ -53,7 +53,8 @@ "executor": "@nativescript/nx:test", "outputs": ["{workspaceRoot}/coverage/apps/nativescript-demo-ng"], "options": { - "coverage": false + "coverage": false, + "flags": "--env.commonjs" }, "configurations": {} } diff --git a/apps/nativescript-demo-ng/src/app/item/item-detail.component.ts b/apps/nativescript-demo-ng/src/app/item/item-detail.component.ts index 9960fab..961475c 100644 --- a/apps/nativescript-demo-ng/src/app/item/item-detail.component.ts +++ b/apps/nativescript-demo-ng/src/app/item/item-detail.component.ts @@ -12,7 +12,7 @@ import { NativeScriptCommonModule } from '@nativescript/angular'; schemas: [NO_ERRORS_SCHEMA], }) export class ItemDetailComponent implements OnInit { - item: Item; + item: Item | null = null; private itemService = inject(ItemService); private route = inject(ActivatedRoute); diff --git a/apps/nativescript-demo-ng/src/app/item/items.component.ts b/apps/nativescript-demo-ng/src/app/item/items.component.ts index ee7c530..00fdd82 100644 --- a/apps/nativescript-demo-ng/src/app/item/items.component.ts +++ b/apps/nativescript-demo-ng/src/app/item/items.component.ts @@ -13,8 +13,8 @@ import { ModalDialogService, NativeDialogService, NativeScriptCommonModule } fro schemas: [NO_ERRORS_SCHEMA], }) export class ItemsComponent implements OnInit, OnDestroy { - message = 'Hello Angular 20.0.0!'; - items: Array; + message = 'Hello Angular 21.0.0!'; + items: Array = []; private itemService = inject(ItemService); private nativeDialog = inject(NativeDialogService); private modalDialog = inject(ModalDialogService); diff --git a/apps/nativescript-demo-ng/src/app/item2/item-detail2.component.html b/apps/nativescript-demo-ng/src/app/item2/item-detail2.component.html index 1346c48..616a490 100644 --- a/apps/nativescript-demo-ng/src/app/item2/item-detail2.component.html +++ b/apps/nativescript-demo-ng/src/app/item2/item-detail2.component.html @@ -14,7 +14,7 @@