Skip to content

Commit 3ffe05a

Browse files
authored
feat(angular): v20 zoneless (#11)
1 parent fc246f2 commit 3ffe05a

29 files changed

+229
-262
lines changed

angular-tutorial/package.json

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -30,31 +30,31 @@
3030
"url": "https://github.com/NativeScript/NativeScript/issues"
3131
},
3232
"dependencies": {
33-
"@angular/animations": "~15.1.0",
34-
"@angular/common": "~15.1.0",
35-
"@angular/compiler": "~15.1.0",
36-
"@angular/core": "~15.1.0",
37-
"@angular/forms": "~15.1.0",
38-
"@angular/platform-browser": "~15.1.0",
39-
"@angular/platform-browser-dynamic": "~15.1.0",
40-
"@angular/router": "~15.1.0",
41-
"@nativescript/angular": "^15.0.0",
42-
"@nativescript/core": "~8.4.0",
43-
"@nativescript/tailwind": "^2.0.1",
33+
"@angular/animations": "~20.2.0",
34+
"@angular/common": "~20.2.0",
35+
"@angular/compiler": "~20.2.0",
36+
"@angular/core": "~20.2.0",
37+
"@angular/forms": "~20.2.0",
38+
"@angular/platform-browser": "~20.2.0",
39+
"@angular/platform-browser-dynamic": "~20.2.0",
40+
"@angular/router": "~20.2.0",
41+
"@nativescript/angular": "^20.0.0",
42+
"@nativescript/core": "~8.9.0",
43+
"@nativescript/tailwind": "^2.1.0",
4444
"@nativescript/theme": "~3.0.1",
45-
"rxjs": "^7.5.0",
46-
"tailwindcss": "^3.2.4",
47-
"zone.js": "~0.11.5"
45+
"rxjs": "^7.8.0",
46+
"zone.js": "~0.15.0"
4847
},
4948
"devDependencies": {
50-
"@angular-devkit/build-angular": "~15.1.0",
51-
"@angular/compiler-cli": "~15.1.0",
52-
"@nativescript/android": "~8.4.0",
53-
"@nativescript/ios": "~8.4.0",
54-
"@nativescript/types": "~8.4.0",
49+
"@angular-devkit/build-angular": "~20.2.0",
50+
"@angular/compiler-cli": "~20.2.0",
51+
"@nativescript/android": "~8.9.0",
52+
"@nativescript/ios": "next",
53+
"@nativescript/types": "~8.9.0",
5554
"@nativescript/webpack": "~5.0.0",
56-
"@ngtools/webpack": "~15.1.0",
57-
"typescript": "~4.8.4"
55+
"@ngtools/webpack": "~20.2.0",
56+
"tailwindcss": "~3.2.4",
57+
"typescript": "~5.8.0"
5858
},
5959
"private": "true",
6060
"readme": "NativeScript Application"
Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -20,34 +20,34 @@ The imported CSS rules must precede all other types of rules.
2020
/* Place any CSS rules you want to apply on both iOS and Android here.
2121
This is where the vast majority of your CSS code goes. */
2222

23-
// applied when device is in light mode
24-
.ns-light {
25-
.bg-primary {
26-
background-color: #fdfdfd;
27-
}
28-
.bg-secondary {
29-
background-color: #ffffff;
30-
}
31-
.text-primary {
32-
color: #444;
33-
}
34-
.text-secondary {
35-
color: #777;
36-
}
23+
/* applied when device is in light mode */
24+
.ns-light .bg-primary {
25+
background-color: #fdfdfd;
26+
}
27+
.ns-light .bg-secondary {
28+
background-color: #ffffff;
29+
border-width: 1;
30+
border-color: #eee;
31+
}
32+
.ns-light .text-primary {
33+
color: #444;
34+
}
35+
.ns-light .text-secondary {
36+
color: #777;
3737
}
3838

39-
// applied when device is in dark mode
40-
.ns-dark {
41-
.bg-primary {
42-
background-color: #212121;
43-
}
44-
.bg-secondary {
45-
background-color: #383838;
46-
}
47-
.text-primary {
48-
color: #eee;
49-
}
50-
.text-secondary {
51-
color: #ccc;
52-
}
39+
/* applied when device is in dark mode */
40+
.ns-dark .bg-primary {
41+
background-color: #212121;
42+
}
43+
.ns-dark .bg-secondary {
44+
background-color: #444444;
45+
border-width: 1;
46+
border-color: #616161;
47+
}
48+
.ns-dark .text-primary {
49+
color: #eee;
50+
}
51+
.ns-dark .text-secondary {
52+
color: #ccc;
5353
}
File renamed without changes.

angular-tutorial/src/app.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { Component, NO_ERRORS_SCHEMA } from '@angular/core';
2+
import { PageRouterOutlet } from '@nativescript/angular';
3+
4+
@Component({
5+
selector: 'ns-app',
6+
templateUrl: './app.html',
7+
imports: [PageRouterOutlet],
8+
schemas: [NO_ERRORS_SCHEMA],
9+
})
10+
export class App {}

angular-tutorial/src/app/app-routing.module.ts

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

angular-tutorial/src/app/app.component.ts

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

angular-tutorial/src/app/app.module.ts

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

angular-tutorial/src/app/core/index.ts

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

angular-tutorial/src/app/core/models/index.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

angular-tutorial/src/app/core/services/index.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)