@adriankulik/create-fullstack-app 1.9.2 → 1.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli/build-date.js +1 -1
- package/package.json +1 -1
- package/templates/frontend/angular/eslint.config.js +8 -13
- package/templates/frontend/angular/karma.conf.js +1 -2
- package/templates/frontend/angular/package-lock.json +4633 -5399
- package/templates/frontend/angular/package.json +22 -25
- package/templates/frontend/angular/src/app/app.component.ts +3 -3
|
@@ -11,37 +11,34 @@
|
|
|
11
11
|
},
|
|
12
12
|
"private": true,
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@angular/animations": "^
|
|
15
|
-
"@angular/common": "^
|
|
16
|
-
"@angular/compiler": "^
|
|
17
|
-
"@angular/core": "^
|
|
18
|
-
"@angular/forms": "^
|
|
19
|
-
"@angular/platform-browser": "^
|
|
20
|
-
"@angular/platform-browser-dynamic": "^
|
|
21
|
-
"@angular/router": "^
|
|
22
|
-
"rxjs": "~7.8.
|
|
23
|
-
"tslib": "^2.
|
|
24
|
-
"zone.js": "~0.
|
|
14
|
+
"@angular/animations": "^22.1.3",
|
|
15
|
+
"@angular/common": "^22.1.3",
|
|
16
|
+
"@angular/compiler": "^22.1.3",
|
|
17
|
+
"@angular/core": "^22.1.3",
|
|
18
|
+
"@angular/forms": "^22.1.3",
|
|
19
|
+
"@angular/platform-browser": "^22.1.3",
|
|
20
|
+
"@angular/platform-browser-dynamic": "^22.1.3",
|
|
21
|
+
"@angular/router": "^22.1.3",
|
|
22
|
+
"rxjs": "~7.8.2",
|
|
23
|
+
"tslib": "^2.8.1",
|
|
24
|
+
"zone.js": "~0.16.2"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@angular-devkit/build-angular": "^
|
|
28
|
-
"@angular
|
|
29
|
-
"@angular
|
|
30
|
-
"@angular-eslint/eslint-plugin-template": "^21.4.0",
|
|
31
|
-
"@angular-eslint/template-parser": "^21.4.0",
|
|
32
|
-
"@angular/cli": "^21.0.0",
|
|
33
|
-
"@angular/compiler-cli": "^21.0.0",
|
|
27
|
+
"@angular-devkit/build-angular": "^22.1.5",
|
|
28
|
+
"@angular/cli": "^22.1.5",
|
|
29
|
+
"@angular/compiler-cli": "^22.1.3",
|
|
34
30
|
"@eslint/js": "^10.0.1",
|
|
35
31
|
"@types/jasmine": "~5.1.0",
|
|
36
|
-
"eslint": "^
|
|
32
|
+
"angular-eslint": "^22.1.0",
|
|
33
|
+
"eslint": "^10.8.1",
|
|
37
34
|
"jasmine-core": "~5.1.0",
|
|
38
|
-
"karma": "~6.4.
|
|
35
|
+
"karma": "~6.4.4",
|
|
39
36
|
"karma-chrome-launcher": "~3.2.0",
|
|
40
|
-
"karma-coverage": "~2.2.
|
|
37
|
+
"karma-coverage": "~2.2.1",
|
|
41
38
|
"karma-jasmine": "~5.1.0",
|
|
42
|
-
"karma-jasmine-html-reporter": "~2.
|
|
43
|
-
"puppeteer": "^
|
|
44
|
-
"typescript": "~
|
|
45
|
-
"typescript-eslint": "^8.
|
|
39
|
+
"karma-jasmine-html-reporter": "~2.3.0",
|
|
40
|
+
"puppeteer": "^25.8.0",
|
|
41
|
+
"typescript": "~6.0.3",
|
|
42
|
+
"typescript-eslint": "^8.67.0"
|
|
46
43
|
}
|
|
47
44
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, ChangeDetectorRef } from '@angular/core';
|
|
1
|
+
import { Component, ChangeDetectorRef, inject } from '@angular/core';
|
|
2
2
|
import { FormsModule } from '@angular/forms';
|
|
3
3
|
|
|
4
4
|
interface MultiplyResponse {
|
|
@@ -12,14 +12,14 @@ interface MultiplyResponse {
|
|
|
12
12
|
templateUrl: './app.component.html',
|
|
13
13
|
})
|
|
14
14
|
export class AppComponent {
|
|
15
|
-
number
|
|
15
|
+
number = '';
|
|
16
16
|
result: number | null = null;
|
|
17
17
|
error: string | null = null;
|
|
18
18
|
|
|
19
19
|
// Configure via environment: defaults to localhost for development
|
|
20
20
|
private apiUrl = 'http://localhost:8000';
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
private cdr = inject(ChangeDetectorRef);
|
|
23
23
|
|
|
24
24
|
async handleSubmit(event: Event) {
|
|
25
25
|
event.preventDefault();
|